Fix incorrect scaling in scrollbar fix (r6895, 35883bb)

...how did this ever look like it worked?
This commit is contained in:
Chris Pavlina 2016-06-08 06:26:39 -04:00
parent 2928cb7419
commit ce3ccec528
1 changed files with 1 additions and 1 deletions

View File

@ -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.