diff options
author | David Tardon <dtardon@redhat.com> | 2014-02-06 13:49:05 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-02-06 13:50:09 +0100 |
commit | 5b35f21f1c69239d0605b0751bed87a410fbffee (patch) | |
tree | eeec232adcfbaaf24f438a04b8dc11d579c81dcc /oox | |
parent | 0c0ed0579e85ab9705485db347f0fac4a191ab26 (diff) |
rhbz#1017379 do not remove too much from the path
Change-Id: Ibffa7f2fbe91be9b95217ce36999e286ef444a37
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/ppt/timenodelistcontext.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oox/source/ppt/timenodelistcontext.cxx b/oox/source/ppt/timenodelistcontext.cxx index 7a9c3c7b7468..aaeacb8b3edb 100644 --- a/oox/source/ppt/timenodelistcontext.cxx +++ b/oox/source/ppt/timenodelistcontext.cxx @@ -785,7 +785,10 @@ namespace oox { namespace ppt { } OUString aStr = xAttribs->getOptionalValue( XML_path ); - 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(); pNode->getNodeProperties()[ NP_PATH ] = makeAny(aStr); mnPathEditMode = xAttribs->getOptionalValueToken( XML_pathEditMode, 0 ); |