diff --git a/docs/changes.txt b/docs/changes.txt index 8885427009..062db24483 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -601,6 +601,7 @@ wxGTK: wxMSW: +- Fix regression in wxDC drawing with bottom-to-top y axis (Artur Wieczorek). - Fix compilation with C++Builder XE compiler (Nichka). - Fix best height of wxSlider with labels but without ticks (Artur Wieczorek). - Fix initial text value of wxSpinCtrlDouble (Laurent Poujoulat). diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp index abd8956f34..d9168af520 100644 --- a/src/msw/dc.cpp +++ b/src/msw/dc.cpp @@ -2007,7 +2007,7 @@ void wxMSWDCImpl::RealizeScaleAndOrigin() // Becaue only devExtX/logExtX ratio and devExtY/logExtY ratio are counted // we can reduce the fractions to avoid large absolute numbers // and possible arithmetic overflows. - unsigned int gcd = CalcGCD(abs(devExtX), abs(logExtX)); + int gcd = CalcGCD(abs(devExtX), abs(logExtX)); devExtX /= gcd; logExtX /= gcd; gcd = CalcGCD(abs(devExtY), abs(logExtY));