fix clipping box retrieval (patch 1771199)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-08-15 13:00:30 +00:00
parent becac1ef57
commit 27539df82b

View File

@@ -238,10 +238,16 @@ wxPaintDC::wxPaintDC(wxWindow *canvas)
ms_cache.Add(new wxPaintDCInfo(m_canvas, this));
}
// (re)set the DC parameters.
// Note: at this point m_hDC can be NULL under MicroWindows, when dragging.
if (GetHDC())
if (!GetHDC())
return;
// (re)set the DC parameters.
InitDC();
// the HDC can have a clipping box (which we didn't set), make sure our
// DoGetClippingBox() checks for it
//m_clipping = true;
}
wxPaintDC::~wxPaintDC()