Created attachment 90148 [details]
xml which was dumped
While creating a unit test for bug#71434, using the XML dump method, the xml file which the program created has duplicate attribute: "name"
My master is built at http://cgit.freedesktop.org/libreoffice/core/commit/?id=62fcdfa34aa302aa9051e90e75b94eb442fa1db7
pptx file: attachment 88942 [details]
xml file attached, see line 3, there are two instances of name="Picture 5", one near the start, another near the end of line.
Created attachment 90149 [details]
patch, showing current situation :)
the pptx file could be downloaded at >> attachment 88942 [details]
Created attachment 90150 [details]
I think the bug resides near here:
The bug is we have dumped "name" attributes two times:
Second: In dumpShapeService function:
> 1859 if(xServiceInfo->supportsService("com.sun.star.drawing.Shape"))
> 1860 dumpShapeService(xPropSet, xmlWriter);
Patch submitted to gerrit:
Korrawit Pruegsanusak committed a patch related to this issue.
It has been pushed to "master":
fdo#72260: guard against duplicate "name" attribute
The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.