From cf841aa286733640ce5bb10a7e7258365572ecec Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 11 May 2022 02:29:02 +0200 Subject: [PATCH] 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. --- src/common/dcbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index 498ce4ba38..a94ecbac0a 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -1411,8 +1411,8 @@ 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(), - drawobject->MaxX(),drawobject->MaxY()); + m_pimpl->CalcBoundingBox(drawobject->MinX(),drawobject->MinY(), + drawobject->MaxX(),drawobject->MaxY()); } #endif // WXWIN_COMPATIBILITY_2_8