diff --git a/tests/graphics/bitmap.cpp b/tests/graphics/bitmap.cpp index 80f10170bd..365fa3f7b4 100644 --- a/tests/graphics/bitmap.cpp +++ b/tests/graphics/bitmap.cpp @@ -93,7 +93,7 @@ void BitmapTestCase::OverlappingBlit() m_bmp.SetMask( NULL ); // Clear to white. - + { wxMemoryDC dc(m_bmp); dc.SetBackground( *wxWHITE ); dc.Clear(); @@ -106,6 +106,7 @@ void BitmapTestCase::OverlappingBlit() // Scroll down one line. dc.Blit( 0, 1, 10, 9, &dc, 0, 0 ); + } // Select the bitmap out of the memory DC before using it directly. // Now, lines 0 and 1 should be red, lines 2++ should still be white.