Eliminate one wxRect constructor in BOX2
The only usage auto converted to BOX2D anyway...
This commit is contained in:
parent
24cb0e77eb
commit
29783f125b
|
@ -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 a dialog partly obscures the window, then center on the uncovered area.
|
||||||
if( dialog )
|
if( dialog )
|
||||||
{
|
{
|
||||||
wxRect dialogRect( GetCanvas()->ScreenToClient( dialog->GetScreenPosition() ),
|
BOX2D dialogRect( GetCanvas()->ScreenToClient( dialog->GetScreenPosition() ),
|
||||||
dialog->GetSize() );
|
dialog->GetSize() );
|
||||||
GetCanvas()->GetView()->SetCenter( aPos, dialogRect );
|
GetCanvas()->GetView()->SetCenter( aPos, dialogRect );
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,16 +60,6 @@ public:
|
||||||
Normalize();
|
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()
|
void SetMaximum()
|
||||||
{
|
{
|
||||||
m_Pos.x = m_Pos.y = coord_limits::lowest() / 2 + coord_limits::epsilon();
|
m_Pos.x = m_Pos.y = coord_limits::lowest() / 2 + coord_limits::epsilon();
|
||||||
|
|
Loading…
Reference in New Issue