summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-05-15 16:08:26 +0200
committerJan Holesovsky <kendy@suse.cz>2013-05-22 09:52:33 +0200
commite520e6fc9b226c683c209c3c01cf828f947e9048 (patch)
tree5cac30dd52b452fd82b7e035d80d1c482dad3eb2
parent131b66fb2d30bd5501d233284061c9f9c14def22 (diff)
bnc#819614: Fix runaway lines.
Change-Id: I360ec44872dbb555870d7d3fc8a9ed81c95e8c07
-rw-r--r--oox/source/drawingml/customshapegeometry.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/drawingml/customshapegeometry.cxx b/oox/source/drawingml/customshapegeometry.cxx
index c76c77f6041a..a94ef680fae7 100644
--- a/oox/source/drawingml/customshapegeometry.cxx
+++ b/oox/source/drawingml/customshapegeometry.cxx
@@ -416,8 +416,9 @@ static EnhancedCustomShapeParameter GetAdjCoordinate( CustomShapeProperties& rCu
n = rValue[ 1 ];
}
if ( ( n >= '0' ) && ( n <= '9' ) )
- { // seems to be a ST_Coordinate
- aRet.Value = Any( (sal_Int32)(rValue.toInt32() ) );
+ {
+ // seems to be a ST_Coordinate - convert EMUs to 1/100th mm
+ aRet.Value = Any( GetCoordinate( rValue ) );
aRet.Type = EnhancedCustomShapeParameterType::NORMAL;
}
else