summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2018-01-11 14:19:10 +0100
committerArmin Le Grand <Armin.Le.Grand@cib.de>2018-01-11 23:24:15 +0100
commit11991973ba565957cef5f09d424e4e2d25c2e1b6 (patch)
treed46c59a9c5462517d002e346fc68eec0a430377b /xmloff
parent5b6a0f0392179af28f996a4980c6f9cecb04965a (diff)
Corrected precision of imported rotation
Change-Id: I82a8b13acad1dd4d56657f02ba02ab1f1f35b161 Reviewed-on: https://gerrit.libreoffice.org/47758 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/text/XMLTextFrameContext.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}