diff options
author | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2016-11-15 04:11:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-11-17 08:50:55 +0000 |
commit | cbac26485f1456b70c51969a1df11bf08643d894 (patch) | |
tree | ac41b05b0c509bbb5a2ca54119027f2d9f266037 /vcl | |
parent | 7e819f20f36ed0208ad9a46bdccbdb52fb353b54 (diff) |
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@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
(cherry picked from commit 5d1a788468ef94cd1de4400d3c1e38d768f7bf8d)
Reviewed-on: https://gerrit.libreoffice.org/30876
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/mapmod.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/mapmod.cxx b/vcl/source/gdi/mapmod.cxx index 70b2065e967a..7d304bef7a82 100644 --- a/vcl/source/gdi/mapmod.cxx +++ b/vcl/source/gdi/mapmod.cxx @@ -115,18 +115,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 |