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:
Vadim Zeitlin
2022-05-11 02:29:02 +02:00
parent 25e5181386
commit cf841aa286

View File

@@ -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