diff options
author | David Tardon <dtardon@redhat.com> | 2014-02-06 15:16:27 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-02-06 15:17:16 +0100 |
commit | eba6a6789c8832f961ac7054588ed84d04b65480 (patch) | |
tree | 446abdae5a4425a840ff423c886976b6058a9023 /sd | |
parent | 85a8c1361dccb2c3b98458c2c1c377d5de275d0e (diff) |
fdo#33852 do not remove too much from the path
Change-Id: I1cf89f300530e761df5a287097d05f95d8af2017
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/ppt/pptinanimations.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx index b6c767f55f67..d761e2b961ae 100644 --- a/sd/source/filter/ppt/pptinanimations.cxx +++ b/sd/source/filter/ppt/pptinanimations.cxx @@ -2128,7 +2128,10 @@ void AnimationImporter::importAnimateMotionContainer( const Atom* pAtom, const R OUString aStr; if ( aPath >>= aStr ) { - aStr = aStr.replace( 'E', ' ' ); + // E can appear inside a number, so we only check for its presence at the end + aStr = aStr.trim(); + if (aStr.endsWith("E")) + aStr = aStr.copy(0, aStr.getLength() - 1); aStr = aStr.trim(); aPath <<= aStr; xMotion->setPath( aPath ); |