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

[REG 5.12.0-5.13] QTextDocument::pageCount erroneously returns negative page count

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.12.4, 5.13.0
    • 5.12.1
    • GUI: Text handling
    • None
    • Linux/X11 running KDE Plasma 5.14.5 with glibc 2.26, kernel 4.19.12
    • b4cc29434769b1d6c08ab2fc76cdcc2dac5dede9 (qt/qtbase/5.12)

    Description

       When QTextDocument contains a QImage of a certain size, pageCount returns a non-sensical value.

       

      How to reproduce:

      Launch the attached example from example.zip and observe the console.

       

      Expected result:  A positive number should be printed.

      Actual result: A negative number is printed.

       

      Note: This is a regression compared to 5.12, where this bug did not occur. It still happens in the current 5.13α Snapshot

      Attachments

        Issue Links

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

          Activity

            People

              laknoll Lars Knoll
              fkosmale fkosmale
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes