Kaydet (Commit) ea4581a9 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

We need to escape special characters in slide names

üst a70d4856
...@@ -665,12 +665,10 @@ void OdgGenerator::startGraphics(const ::WPXPropertyList &propList) ...@@ -665,12 +665,10 @@ void OdgGenerator::startGraphics(const ::WPXPropertyList &propList)
WPXString sValue; WPXString sValue;
if (propList["draw:name"]) if (propList["draw:name"])
pDrawPageOpenElement->addAttribute("draw:name", propList["draw:name"]->getStr()); sValue = WPXString(propList["draw:name"]->getStr(), true); // escape special xml characters
else else
{
sValue.sprintf("page%i", mpImpl->miPageIndex); sValue.sprintf("page%i", mpImpl->miPageIndex);
pDrawPageOpenElement->addAttribute("draw:name", sValue); pDrawPageOpenElement->addAttribute("draw:name", sValue);
}
#ifdef MULTIPAGE_WORKAROUND #ifdef MULTIPAGE_WORKAROUND
pStyleMasterPageOpenElement->addAttribute("style:page-layout-name", "PM0"); pStyleMasterPageOpenElement->addAttribute("style:page-layout-name", "PM0");
pStylePageLayoutOpenElement->addAttribute("style:page-layout-name", "PM0"); pStylePageLayoutOpenElement->addAttribute("style:page-layout-name", "PM0");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment