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

REG: QPolygonF::united returns errornous result

XMLWordPrintable

      Regression issue from Qt 5.1.1.

      QPolygonF:united() returns errornous result when using more complex polygons. Please test attached polygon.zip. Mouse clicking change polygons between A, B and united (green).

      Regression is caused because of qSort is changed to std::sort in QPathClipper.

      Change-Id: I324ddf6129fe8884ecea97ef47abb7c071dfb34c

      Reverting std::sort() to qSort() fixes the issue. Patch attached. But don't believe it's solution for longer term if qSort is deprecated. Please do correction to std:sort() usage. Be aware if there's other situations also that cause problems because of the qSort change.

        1. pathclipper_revert.patch
          2 kB
          Qt Support
        2. polygon.zip
          1 kB
          Qt Support
        3. polygon2.zip
          2 kB
          Jan Arve
        4. polygon3.zip
          1 kB
          Jan Arve
        5. qtbug38037_diag.patch
          1 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            smd Jan Arve
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes