summaryrefslogtreecommitdiff
path: root/oox/source/drawingml/customshapegeometry.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-05-15 16:08:26 +0200
committerJan Holesovsky <kendy@suse.cz>2013-05-16 04:57:15 +0200
commit5fe65c0c5e5a8d815d9d15ef192e7652726662e6 (patch)
tree18c4172973f0122c9c1a8acf97f43f739d877463 /oox/source/drawingml/customshapegeometry.cxx
parent18b9aa7280ccb0633c222178582d5ff4234e6140 (diff)
bnc#819614: Fix runaway lines.
Change-Id: I360ec44872dbb555870d7d3fc8a9ed81c95e8c07
Diffstat (limited to 'oox/source/drawingml/customshapegeometry.cxx')
-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 3155b893c198..20458f0f3591 100644
--- a/oox/source/drawingml/customshapegeometry.cxx
+++ b/oox/source/drawingml/customshapegeometry.cxx
@@ -406,8 +406,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