diff --git a/patches/wxWidgets-3.0.2-msw-dc-orientation-fix.patch b/patches/wxWidgets-3.0.2-msw-dc-orientation-fix.patch new file mode 100644 index 0000000000..28969f62db --- /dev/null +++ b/patches/wxWidgets-3.0.2-msw-dc-orientation-fix.patch @@ -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));