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

QPointF's operator==() is too accurate near co-ordinate axes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.11.2
    • 5.11.1
    • Core: Other
    • None

    Description

      Since [0]'s change, QCOMPARE(QPointF(1.95943e-15,-32.0), QPointF(0,-32.0)); fails.
      Since one co-ordinate is well away from zero, [0] uses qFuzzyCompare for both co-ordinates, where it actually needs to use qFuzzyIsNull for the x-coordinate.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            Eddy Edward Welbourne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes