Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-169

Same styles are not copied when we append a presentation document to an other

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • odfdom-0.8.6
    • None
    • java
    • 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

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--style_break.zip
          53 kB
          matthieu
        2. table_ok_169.odp
          18 kB
          Da Li Liu

        Activity

          People

            daisy@odftoolkit.org Ying Chun Guo
            matthieu@odftoolkit.org matthieu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: