vcl/source/gdi/mapmod.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit 5d1a788468ef94cd1de4400d3c1e38d768f7bf8d Author: Thorsten Behrens <thorsten.behr...@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 <c...@libreoffice.org> Reviewed-by: Thorsten Behrens <thorsten.behr...@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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits