summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-02-06 15:16:27 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2014-02-06 14:52:59 +0000
commitde82da1b67ce3a293b3ad45030d591cc3b3e12b4 (patch)
treebc78ff0f2322009a12359af12b4ce56335e00cb4
parent148ed6783b3c6e5e3c068f1a802c8bdfaba14e21 (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/7899 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r--sd/source/filter/ppt/pptinanimations.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/filter/ppt/pptinanimations.cxx b/sd/source/filter/ppt/pptinanimations.cxx
index 3d7daa85cc7d..4b3316ce1d1d 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 );