summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-02-22 10:08:44 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-02-22 10:11:17 +0100
commitea4581a914cb1aad29f16b73e35350f05f8adc1c (patch)
tree7a7db25d5dec9c7268da68ba872ad63b1f90d92e /writerperfect
parenta70d4856366fca2502b7f248db224f0f2d59a80c (diff)
We need to escape special characters in slide names
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/filter/OdgGenerator.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 4474b4852679..d166a09bbda5 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -665,12 +665,10 @@ void OdgGenerator::startGraphics(const ::WPXPropertyList &propList)
WPXString sValue;
if (propList["draw:name"])
- pDrawPageOpenElement->addAttribute("draw:name", propList["draw:name"]->getStr());
+ sValue = WPXString(propList["draw:name"]->getStr(), true); // escape special xml characters
else
- {
sValue.sprintf("page%i", mpImpl->miPageIndex);
- pDrawPageOpenElement->addAttribute("draw:name", sValue);
- }
+ pDrawPageOpenElement->addAttribute("draw:name", sValue);
#ifdef MULTIPAGE_WORKAROUND
pStyleMasterPageOpenElement->addAttribute("style:page-layout-name", "PM0");
pStylePageLayoutOpenElement->addAttribute("style:page-layout-name", "PM0");