[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - writerperfect/source
Fridrich Å trba
fridrich.strba at bluewin.ch
Fri Feb 22 06:44:37 PST 2013
writerperfect/source/filter/OdgGenerator.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 4c0e53e6530c5590f7123f506a1a58bcbd04e13d
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Tue Feb 19 16:44:51 2013 +0100
Allow specifying of page names
Allow specifying of page names
(cherry picked from commit bee8ed6772f420f9eefc57fee01da29ff466a8e9)
We need to escape special characters in slide names
(cherry picked from commit ea4581a914cb1aad29f16b73e35350f05f8adc1c)
Change-Id: I5f523642b980469afa46e1895cfd39aa08b9941d
Reviewed-on: https://gerrit.libreoffice.org/2333
Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
Tested-by: Bosdonnat Cedric <cedric.bosdonnat at free.fr>
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 8661138..1caebdd 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -664,7 +664,10 @@ void OdgGenerator::startGraphics(const ::WPXPropertyList &propList)
TagOpenElement *pStylePageLayoutOpenElement = new TagOpenElement("style:page-layout");
WPXString sValue;
- sValue.sprintf("page%i", mpImpl->miPageIndex);
+ if (propList["draw:name"])
+ sValue = WPXString(propList["draw:name"]->getStr(), true); // escape special xml characters
+ else
+ sValue.sprintf("page%i", mpImpl->miPageIndex);
pDrawPageOpenElement->addAttribute("draw:name", sValue);
#ifdef MULTIPAGE_WORKAROUND
pStyleMasterPageOpenElement->addAttribute("style:page-layout-name", "PM0");
More information about the Libreoffice-commits
mailing list