git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48094
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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())
- InitDC();
+ 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()