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

QTextDocument asserts on specific usage of CSS border-width

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.14.1
    • 5.14.0 Beta2
    • GUI: Text handling
    • None

    Description

      The attached HTML file crashes QTextDocument::setHtml (QList<T>::at: "index out of range").

       442│ void ValueExtractor::lengthValues(const Declaration &decl, int *m)
       443│ {
       444│     if (decl.d->parsed.isValid()) {
       445│         QList<QVariant> v = decl.d->parsed.toList();
       446│         for (int i = 0; i < 4; i++)
       447├───────────> m[i] = lengthValueFromData(qvariant_cast<LengthData>(v.at(i)), f);
       448│         return;
       449│     }
       450│
      
      (gdb) p v
      $1 = QList<QVariant> (size = 0)
      

      Attachments

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

        Activity

          People

            dfaure_kdab David Faure
            dfaure_kdab David Faure
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes