Fix build with WXWIN_COMPATIBILITY_2_8==1
This was broken by the changes of 6383bc39ff (Add convenient
wxDCImpl::CalcBoundingBox() overloads and use them, 2022-04-30), fix it
by calling the overloaded wxDCImpl::CalcBoundingBox() instead of the
wxDC version for which the overloads were not added.
Closes #22418.
This commit is contained in:
@@ -1411,7 +1411,7 @@ void wxDC::GetClippingBox(long *x, long *y, long *w, long *h) const
|
||||
void wxDC::DrawObject(wxDrawObject* drawobject)
|
||||
{
|
||||
drawobject->Draw(*this);
|
||||
CalcBoundingBox(drawobject->MinX(),drawobject->MinY(),
|
||||
m_pimpl->CalcBoundingBox(drawobject->MinX(),drawobject->MinY(),
|
||||
drawobject->MaxX(),drawobject->MaxY());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user