Add patch to fix wxWidgets 3.0.2 mirrored print bug.

This commit is contained in:
Wayne Stambaugh 2015-06-13 17:39:18 -04:00
parent 02ece9ccb5
commit 7c21dcbab5
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/src/msw/dc.cpp b/src/msw/dc.cpp
index abd8956..d9168af 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));