diff --git a/src/gtk/dcclient.cpp b/src/gtk/dcclient.cpp index ed7876025f..c5e1b9c5f5 100644 --- a/src/gtk/dcclient.cpp +++ b/src/gtk/dcclient.cpp @@ -1426,7 +1426,7 @@ bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest, } else // use_bitmap_method { - if ((memDC->m_selected.GetWidth() != ww) || (memDC->m_selected.GetHeight() != hh)) + if ((width != ww) || (height != hh)) { // get clip coords wxRegion tmp( xx,yy,ww,hh ); diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index ed7876025f..c5e1b9c5f5 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -1426,7 +1426,7 @@ bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest, } else // use_bitmap_method { - if ((memDC->m_selected.GetWidth() != ww) || (memDC->m_selected.GetHeight() != hh)) + if ((width != ww) || (height != hh)) { // get clip coords wxRegion tmp( xx,yy,ww,hh );