summaryrefslogtreecommitdiff
path: root/oox/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-02-19 00:36:49 +0100
committerAndras Timar <andras.timar@collabora.com>2015-02-19 16:16:09 +0100
commitf86e5d2559b25a864dd9dbb6fc4c7a006f9c2415 (patch)
treee0d2cc2e857a660bd05a9829aa46ecd0b5931824 /oox/source
parent5bd236a51a8ab7319966dffb402abb97919b4e7c (diff)
this should be [-90, 90] and not (-90, 90), tdf#89454
Change-Id: I943be2cf660d2dc77eebd776208af96c0b5f67a4 (cherry picked from commit 0d1bd8c4f12d4e60d1f33f7df0a201d2affb7767)
Diffstat (limited to 'oox/source')
-rw-r--r--oox/source/drawingml/chart/objectformatter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/drawingml/chart/objectformatter.cxx b/oox/source/drawingml/chart/objectformatter.cxx
index d27b18f3dbeb..43efca0a1b0f 100644
--- a/oox/source/drawingml/chart/objectformatter.cxx
+++ b/oox/source/drawingml/chart/objectformatter.cxx
@@ -1132,7 +1132,7 @@ void ObjectFormatter::convertTextRotation( PropertySet& rPropSet, const ModelRef
OOXML counts clockwise, Chart2 counts counterclockwise. */
double fAngle = static_cast< double >( bStacked ? 0 : rxTextProp->getTextProperties().moRotation.get( 0 ) );
// MS Office UI allows values only in range of [-90,90].
- if ( fAngle <= -5400000.0 || fAngle >= 5400000.0 )
+ if ( fAngle < -5400000.0 || fAngle > 5400000.0 )
{
fAngle = 0.0;
}