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,8 +1411,8 @@ void wxDC::GetClippingBox(long *x, long *y, long *w, long *h) const
|
|||||||
void wxDC::DrawObject(wxDrawObject* drawobject)
|
void wxDC::DrawObject(wxDrawObject* drawobject)
|
||||||
{
|
{
|
||||||
drawobject->Draw(*this);
|
drawobject->Draw(*this);
|
||||||
CalcBoundingBox(drawobject->MinX(),drawobject->MinY(),
|
m_pimpl->CalcBoundingBox(drawobject->MinX(),drawobject->MinY(),
|
||||||
drawobject->MaxX(),drawobject->MaxY());
|
drawobject->MaxX(),drawobject->MaxY());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // WXWIN_COMPATIBILITY_2_8
|
#endif // WXWIN_COMPATIBILITY_2_8
|
||||||
|
|||||||
Reference in New Issue
Block a user