Fixed updating clipping box parameters prior to retrieving the box (MSW).
Empty clipping region doesn't mean that there is no clipping.
This commit is contained in:
@@ -591,9 +591,6 @@ wxMSWDCImpl::DoGetClippingBox(wxCoord *x, wxCoord *y, wxCoord *w, wxCoord *h) co
|
|||||||
{
|
{
|
||||||
wxMSWDCImpl *self = wxConstCast(this, wxMSWDCImpl);
|
wxMSWDCImpl *self = wxConstCast(this, wxMSWDCImpl);
|
||||||
self->UpdateClipBox();
|
self->UpdateClipBox();
|
||||||
|
|
||||||
if ( !m_clipX1 && !m_clipX2 )
|
|
||||||
self->m_clipping = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
wxDCImpl::DoGetClippingBox(x, y, w, h);
|
wxDCImpl::DoGetClippingBox(x, y, w, h);
|
||||||
|
Reference in New Issue
Block a user