[Libreoffice-commits] core.git: vcl/source

Thorsten Behrens Thorsten.Behrens at CIB.de
Tue Nov 15 14:51:36 UTC 2016


 vcl/source/gdi/mapmod.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 5d1a788468ef94cd1de4400d3c1e38d768f7bf8d
Author: Thorsten Behrens <Thorsten.Behrens at CIB.de>
Date:   Tue Nov 15 04:11:08 2016 +0100

    fix tdf#101832 and tdf#100617
    
    OutDev mapmode takes shortcuts for 'simple' mappings, so clear that flag
    once we set scale/origin away from defaults.
    
    Change-Id: I00321e27322d9cb8b86e6cc8400f6396d03328cc
    Reviewed-on: https://gerrit.libreoffice.org/30855
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>

diff --git a/vcl/source/gdi/mapmod.cxx b/vcl/source/gdi/mapmod.cxx
index 422d6d8..d4aa044 100644
--- a/vcl/source/gdi/mapmod.cxx
+++ b/vcl/source/gdi/mapmod.cxx
@@ -114,18 +114,21 @@ void MapMode::SetMapUnit( MapUnit eUnit )
 void MapMode::SetOrigin( const Point& rLogicOrg )
 {
     mpImplMapMode->maOrigin = rLogicOrg;
+    mpImplMapMode->mbSimple = false;
 }
 
 void MapMode::SetScaleX( const Fraction& rScaleX )
 {
     mpImplMapMode->maScaleX = rScaleX;
     mpImplMapMode->maScaleX.ReduceInaccurate(32);
+    mpImplMapMode->mbSimple = false;
 }
 
 void MapMode::SetScaleY( const Fraction& rScaleY )
 {
     mpImplMapMode->maScaleY = rScaleY;
     mpImplMapMode->maScaleY.ReduceInaccurate(32);
+    mpImplMapMode->mbSimple = false;
 }
 
 double MapMode::GetUnitMultiplier() const


More information about the Libreoffice-commits mailing list