diff --git a/common/eda_draw_frame.cpp b/common/eda_draw_frame.cpp index 67e2ee07b4..3e4891556e 100644 --- a/common/eda_draw_frame.cpp +++ b/common/eda_draw_frame.cpp @@ -857,7 +857,7 @@ void EDA_DRAW_FRAME::FocusOnLocation( const wxPoint& aPos ) // If a dialog partly obscures the window, then center on the uncovered area. if( dialog ) { - wxRect dialogRect( GetCanvas()->ScreenToClient( dialog->GetScreenPosition() ), + BOX2D dialogRect( GetCanvas()->ScreenToClient( dialog->GetScreenPosition() ), dialog->GetSize() ); GetCanvas()->GetView()->SetCenter( aPos, dialogRect ); } diff --git a/libs/kimath/include/math/box2.h b/libs/kimath/include/math/box2.h index 201c43f213..2bd2c837de 100644 --- a/libs/kimath/include/math/box2.h +++ b/libs/kimath/include/math/box2.h @@ -60,16 +60,6 @@ public: Normalize(); } -#ifdef WX_COMPATIBILITY - /// Constructor with a wxRect as argument - BOX2( const wxRect& aRect ) : - m_Pos( aRect.GetPosition() ), - m_Size( aRect.GetSize() ) - { - Normalize(); - } -#endif - void SetMaximum() { m_Pos.x = m_Pos.y = coord_limits::lowest() / 2 + coord_limits::epsilon();