[Libreoffice-commits] core.git: Branch 'libreoffice-6-0' - xmloff/source
Armin Le Grand
Armin.Le.Grand at cib.de
Thu Jan 11 22:24:48 UTC 2018
xmloff/source/text/XMLTextFrameContext.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 11991973ba565957cef5f09d424e4e2d25c2e1b6
Author: Armin Le Grand <Armin.Le.Grand at cib.de>
Date: Thu Jan 11 14:19:10 2018 +0100
Corrected precision of imported rotation
Change-Id: I82a8b13acad1dd4d56657f02ba02ab1f1f35b161
Reviewed-on: https://gerrit.libreoffice.org/47758
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Armin Le Grand <Armin.Le.Grand at cib.de>
diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx
index 14107cf65e65..a7c806a185c8 100644
--- a/xmloff/source/text/XMLTextFrameContext.cxx
+++ b/xmloff/source/text/XMLTextFrameContext.cxx
@@ -1025,7 +1025,7 @@ XMLTextFrameContext_Impl::XMLTextFrameContext_Impl(
// with XMLTextParagraphExport::_exportTextGraphic normally it would need
// to me mirrored using * -1.0, see conversion there)
const double fRotate(aDecomposedTransform.getRotate() * (1800.0/M_PI));
- nRotation = static_cast< sal_Int16 >(fRotate) % 3600;
+ nRotation = static_cast< sal_Int16 >(basegfx::fround(fRotate) % 3600);
}
}
}
More information about the Libreoffice-commits
mailing list