Kaydet (Commit) ee142d72 authored tarafından Armin Le Grand's avatar Armin Le Grand

Corrected precision of imported rotation

Change-Id: I82a8b13acad1dd4d56657f02ba02ab1f1f35b161
Reviewed-on: https://gerrit.libreoffice.org/47759Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarArmin Le Grand <Armin.Le.Grand@cib.de>
üst 6afb78d3
......@@ -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);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment