Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
odfdom-0.8.6
-
None
-
None
-
Operating System: Windows
Platform: PC
-
244
Description
Created an attachment (id=424)
Examples documents to illustrate the bug
When I add a new document to an other, there is some "content styles tags" with same content but differents id (corresponding to a tag element in the document) which are not copied.
OdfPrensentationDocument.appendPrensentation
> copyForeignStyleRef(...);
> getCopyStyleList(...);
> HashMap<OdfElement, List<OdfElement>> copyStyleEleList
This Map keep styles which have same content but after, elements having those styles are not rewrited.
So in the final document, there is elements which have lost their styles.
To fix this bug, I think you can rewrite elements style-name in the map with the referent style-name kept.
For better understanding, please see document attached.
table_ok.odp > document before appendPresentation
table_ko.odp > document after appendPresentation
Thank you.
Matthieu