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

Console warning when invalid coordinate is passed to MapQuickItem

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.2
    • 5.9.0 Beta 4
    • None

    Description

      When an invalid geocoordinate is passed to a MapQuickItem then the following warning is printed in the debug output:

       

      QTransform::translate with NaN called

      The MapQuickItem should check if the passed coordinate is valid.

      Example:

      MapQuickItem {
          coordinate: positionSource.position.coordinate // invalid coordinate or null
          visible: positionSource.active
          anchorPoint.x: rect.width * 0.5
          anchorPoint.y: rect.height
          sourceItem: Rectangle {
              id: rect
              width: 30
              height: 30
              color: "blue"
              opacity: 0.3
              radius: width/2
          }
      }

      Attachments

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

        Activity

          People

            paangele Paolo Angelelli
            DanielSt Peter Staab
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes