Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5725

Invalid .odf output is produced simply by setting a char format font in a table

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.6.2
    • 4.5.2
    • GUI: Text handling
    • None
    • 59a2ed52a780afea84c118054fb7de2440a5d17f

    Description

      If you insert some text into a table using the QTextCursor API using a QTextCharFormat to set the font and then use QTextDocumentWriter to output a .odf file, the .odf file is unreadable.

      The document produced will not load using OpenOffice.org 3.0 on Fedora 10/Linux. What happens is that OpenOffice pops up a dialog with the caption "OpenOffice.org 3.0" and with the message text "Format error discovered in the file in sub-document content.xml at 17,125(row,col)."

      The bug occurs with Qt 4.5.2 and 4.6.0-tp1.

      See the line marked BUG in main.cpp to see where the cause is in the attached example

      Attachments

        1. bug1.pro
          0.1 kB
          Mark Summerfield
        2. main.cpp
          3 kB
          Mark Summerfield
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            zander tho (closed Nokia identity) (Inactive)
            m.n.summerfield Mark Summerfield
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes