From 1b5a1b74fac1b5e23820c4318ffbb8bfb4f01431 Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Sat, 3 Aug 2013 13:57:15 -0500 Subject: [PATCH] fix interface mapping slip-up in wxPoint EDA_DRAW_FRAME::GetCrossHairPosition( bool aInvertY ) const --- common/drawframe.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/drawframe.cpp b/common/drawframe.cpp index 5c29adcfdd..ac0669ef7d 100644 --- a/common/drawframe.cpp +++ b/common/drawframe.cpp @@ -720,12 +720,9 @@ void EDA_DRAW_FRAME::AdjustScrollBars( const wxPoint& aCenterPositionIU ) { BASE_SCREEN* screen = GetScreen(); - if( screen == NULL || m_canvas == NULL ) + if( !screen || !m_canvas ) return; - // There are no safety limits on these calculations, so in NANOMETRES build it - // still blows up. This is incomplete work. - double scale = screen->GetScalingFactor(); wxLogTrace( traceScrollSettings, wxT( "Center Position = ( %d, %d ), scale = %.10g" ), @@ -933,7 +930,7 @@ wxPoint EDA_DRAW_FRAME::GetCrossHairPosition( bool aInvertY ) const // subject to change, borrow from old BASE_SCREEN for now. BASE_SCREEN* screen = GetScreen(); // virtual call - return screen->getCrossHairPosition(); + return screen->getCrossHairPosition( aInvertY ); }