summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-12-08 00:05:59 +0100
committerMichael Stahl <mstahl@redhat.com>2014-07-10 21:40:25 +0200
commit11d6ae6df8dfff1db182ac455d4abcaf7c18ded1 (patch)
tree6355c08102cad1b747a37aacdfc69ad5a3e44ff1
parent50b9fe07f9851160e12922feb7d96d6f7ae5b52e (diff)
fdo#80201: msfilter: fix infinite loop during export
(regression from 6c5557c60f97778fd732c01f054553356ce7f258) (cherry picked from commit 86b9f03c3f754f7b753893ff2772f6b17bf3de3c) Signed-off-by: Michael Stahl <mstahl@redhat.com> Change-Id: I75bfafbc7343aaddbbc5c7433e28b5d4154177dc
-rw-r--r--filter/source/msfilter/eschesdo.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/filter/source/msfilter/eschesdo.cxx b/filter/source/msfilter/eschesdo.cxx
index 25efbad47d8b..0e20dfb03c3d 100644
--- a/filter/source/msfilter/eschesdo.cxx
+++ b/filter/source/msfilter/eschesdo.cxx
@@ -101,6 +101,8 @@ void ImplEESdrWriter::ImplFlipBoundingBox( ImplEESdrObject& rObj, EscherProperty
// for position calculations, we normalize the angle between 0 and 90 degrees
if ( nAngle < 0 )
nAngle = ( 36000 + nAngle ) % 36000;
+ if ( nAngle % 18000 == 0 )
+ nAngle = 0;
while ( nAngle > 9000 )
nAngle = ( 18000 - ( nAngle % 18000 ) );