From ce3ccec5286d5bfe97e68b44ae394ef2d978df99 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Wed, 8 Jun 2016 06:26:39 -0400 Subject: [PATCH] Fix incorrect scaling in scrollbar fix (r6895, 35883bb) ...how did this ever look like it worked? --- common/draw_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/draw_frame.cpp b/common/draw_frame.cpp index 442e110e6c..6f06993978 100644 --- a/common/draw_frame.cpp +++ b/common/draw_frame.cpp @@ -905,7 +905,7 @@ void EDA_DRAW_FRAME::AdjustScrollBars( const wxPoint& aCenterPositionIU ) // Account for scrollbars wxSize scrollbarSizeDU = m_canvas->GetSize() - m_canvas->GetClientSize(); - wxSize scrollbarSizeIU = scrollbarSizeDU * scale; + wxSize scrollbarSizeIU = scrollbarSizeDU * (1 / scale); wxPoint centerAdjustedIU = aCenterPositionIU + scrollbarSizeIU / 2; // The upper left corner of the client rectangle in internal units.