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

QGeoRectangle unification doesn't always results in the smallest possible rectangle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.0
    • Fix Version/s: None
    • Component/s: Positioning
    • Labels:
      None

      Description

      Consider two non-wrapping small rectangles:

      QGeoRectangle A(QGeoCoordinate(30, 160), QGeoCoordinate(-30, 170));
      QGeoRectangle B(QGeoCoordinate(30, -170), QGeoCoordinate(-30, 160));
      

      The result of A | B will be a rectangle with left edge at -170 and right edge at 170, which is theoretically correct (includes both rectangles), but doesn't satisfy the "smallest possible" property stated in the documentation (which would be the other way around, resulting in a wrapping rectangle).

        Attachments

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

          Activity

            People

            Assignee:
            ablasche Alex Blasche
            Reporter:
            yzsolt Zsolt Bölöny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes