Skip to content

Commit

Permalink
Fix build with WXWIN_COMPATIBILITY_2_8==1
Browse files Browse the repository at this point in the history
This was broken by the changes of 6383bc3 (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.
  • Loading branch information
vadz committed May 11, 2022
1 parent 25e5181 commit cf841aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/dcbase.cpp
Expand Up @@ -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
Expand Down

0 comments on commit cf841aa

Please sign in to comment.