We need to escape special characters in slide names

This commit is contained in:
Fridrich Štrba
2013-02-22 10:08:44 +01:00
parent a70d485636
commit ea4581a914

View File

@@ -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");