summaryrefslogtreecommitdiff
path: root/oox/source/shape
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2015-09-18 12:57:39 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-18 21:02:07 +0000
commit494aa9ee5d01699c0dcbc912091de30a314c09fc (patch)
treee9000091c3dd9690c614ab87a0580fdaa37d25cc /oox/source/shape
parent217a22188274221035aec988eccea5e5c9768921 (diff)
Workaround unit test failure by comparing as long
On 32bit system, for some reason casting to double gives wrong results. Failing unit test was testTdf87924 in CppunitTest_sw_ooxmlimport. Change-Id: If93e5288a381e50f30d035d56131b1d9235ac658 Reviewed-on: https://gerrit.libreoffice.org/18684 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'oox/source/shape')
-rw-r--r--oox/source/shape/WpsContext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/shape/WpsContext.cxx b/oox/source/shape/WpsContext.cxx
index 657071bf4a7a..0cf558c63cb5 100644
--- a/oox/source/shape/WpsContext.cxx
+++ b/oox/source/shape/WpsContext.cxx
@@ -100,7 +100,7 @@ oox::core::ContextHandlerRef WpsContext::onCreateContext(sal_Int32 nElementToken
// If the text is not rotated the way the shape wants it already, set the angle.
const sal_Int32 nRotation = -270;
- if (basegfx::rad2deg(fRotate) != static_cast<double>(NormAngle360(nRotation * 100)) / 100)
+ if (static_cast<long>(basegfx::rad2deg(fRotate)) != NormAngle360(nRotation * 100) / 100)
{
comphelper::SequenceAsHashMap aCustomShapeGeometry(xPropertySet->getPropertyValue("CustomShapeGeometry"));
aCustomShapeGeometry["TextPreRotateAngle"] = uno::makeAny(nRotation);