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

QTextDocument asserts on specific usage of CSS border-width

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.14.0 Beta2
    • Fix Version/s: 5.14.1
    • Component/s: GUI: Text handling
    • Labels:
      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

        For Gerrit Dashboard: QTBUG-80496
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            dfaure_kdab David Faure
            Reporter:
            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