]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcmemory.cpp
fixed bug in mouse handling
[wxWidgets.git] / src / gtk / dcmemory.cpp
index 95bf5b9a8a7bd11d0e2dea3d69f6a3da72040a8b..a1e0c244522876fd6e6ce37b46803511e5f8f31a 100644 (file)
@@ -56,9 +56,9 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
             m_window = m_selected.GetBitmap();
         }
 
             m_window = m_selected.GetBitmap();
         }
 
-        SetUpDC();
-
         m_isMemDC = TRUE;
         m_isMemDC = TRUE;
+
+        SetUpDC();
     }
     else
     {
     }
     else
     {