Details
-
Bug
-
Resolution: Done
-
P2: Important
-
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 } }