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

qtextodfwriter produces Invalid XML for FontWordSpacing

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • 4.6.0
    • 4.5.2
    • GUI: Printing
    • None

      qtextodfwriter.cpp, line 553 +

      if (format.hasProperty(QTextFormat::FontLetterSpacing))
      writer.writeAttribute(foNS, QString::fromLatin1("letter-spacing"), pixelToPoint(format.fontLetterSpacing()) );
      if (format.hasProperty(QTextFormat::FontWordSpacing))
      writer.writeAttribute(foNS, QString::fromLatin1("letter-spacing"), pixelToPoint(format.fontWordSpacing()) );

      When the format has property QTextFormat::FontWordSpacing, the node created should be "word-spacing", not "letter-spacing".

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            janichol Andy Nichols
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes