diff options
author | David Tardon <dtardon@redhat.com> | 2014-02-06 15:16:27 +0100 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2014-02-06 14:53:18 +0000 |
commit | ad9fb2cbbb494a1b97ea493208b5264c3a2d98a5 (patch) | |
tree | 6bf2e7b37096b92b76bd89fe8f2ec2b5bd145f2d | |
parent | f0eff9bc2a9c952b2ccb6c5dcef6f18763dc3454 (diff) |
fdo#33852 do not remove too much from the path
Change-Id: I1cf89f300530e761df5a287097d05f95d8af2017
(cherry picked from commit eba6a6789c8832f961ac7054588ed84d04b65480)
Reviewed-on: https://gerrit.libreoffice.org/7900
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-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 75b426dc1435..90112513def1 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 ); |