From 381819692937defbd565f351ad9100ed38d1fc57 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 19 Feb 2015 00:36:49 +0100 Subject: this should be [-90, 90] and not (-90, 90), tdf#89454 Change-Id: I943be2cf660d2dc77eebd776208af96c0b5f67a4 (cherry picked from commit 0d1bd8c4f12d4e60d1f33f7df0a201d2affb7767) --- oox/source/drawingml/chart/objectformatter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oox/source/drawingml/chart/objectformatter.cxx b/oox/source/drawingml/chart/objectformatter.cxx index d6cd258bb860..ac5b875a78bd 100644 --- a/oox/source/drawingml/chart/objectformatter.cxx +++ b/oox/source/drawingml/chart/objectformatter.cxx @@ -1110,7 +1110,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; } -- cgit v1.2.3