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:30 +0100
commitee142d728cfb849d0b9245367ae9e1bed279111f (patch)
tree27bd4207031e92b635c8cdb455c5898afe799e2d /xmloff
parent6afb78d3dd130a513c2dd0bee924a3775fcf0b97 (diff)
Corrected precision of imported rotation
Change-Id: I82a8b13acad1dd4d56657f02ba02ab1f1f35b161 Reviewed-on: https://gerrit.libreoffice.org/47759 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 45d34f8fffae..5e112a860c3d 100644
--- a/xmloff/source/text/XMLTextFrameContext.cxx
+++ b/xmloff/source/text/XMLTextFrameContext.cxx
@@ -1026,7 +1026,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);
}
}
}