]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcmemory.cpp
make sure theme font info is reset if anything is changed
[wxWidgets.git] / src / gtk / dcmemory.cpp
index 2a0d2687cbb66880cb396e90fe842046b26f1fa7..e1ce88efa29b8be7b7cebdf3c5b06c2c7c4e225e 100644 (file)
@@ -32,7 +32,7 @@ wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap)
   : wxWindowDCImpl( owner )
 { 
     Init(); 
-    owner->SelectObject(bitmap); 
+    DoSelect(bitmap); 
 }
 
 wxMemoryDCImpl::wxMemoryDCImpl( wxMemoryDC *owner, wxDC *WXUNUSED(dc) )
@@ -76,7 +76,7 @@ void wxMemoryDCImpl::DoSelect( const wxBitmap& bitmap )
     else
     {
         m_ok = false;
-        m_gdkwindow = (GdkWindow *) NULL;
+        m_gdkwindow = NULL;
     }
 }