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:
@@ -238,10 +238,16 @@ wxPaintDC::wxPaintDC(wxWindow *canvas)
|
|||||||
ms_cache.Add(new wxPaintDCInfo(m_canvas, this));
|
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.
|
// Note: at this point m_hDC can be NULL under MicroWindows, when dragging.
|
||||||
if (GetHDC())
|
if (!GetHDC())
|
||||||
InitDC();
|
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()
|
wxPaintDC::~wxPaintDC()
|
||||||
|
Reference in New Issue
Block a user