mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-21 12:51:41 +00:00
Add patch to fix wxWidgets 3.0.2 mirrored print bug.
This commit is contained in:
parent
02ece9ccb5
commit
7c21dcbab5
13
patches/wxWidgets-3.0.2-msw-dc-orientation-fix.patch
Normal file
13
patches/wxWidgets-3.0.2-msw-dc-orientation-fix.patch
Normal 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));
|
Loading…
Reference in New Issue
Block a user