Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.0
-
None
-
-
b544e2fe22333f0a5fbd24a1ee106c5501a6b886 (qt/qtlocation/5.12)
Description
Consider a small non-wrapping:
QGeoRectangle(QGeoCoordinate(-30.0, 160.0), QGeoCoordinate(30.0, 170.0));
and a bigger, wrapping rectangle (which contains the former rectangle entirely):
QGeoRectangle(QGeoCoordinate(-30.0, 40.0), QGeoCoordinate(30.0, -40.0));
Uniting the two (using united() or the | operator) results in a rectangle with top left coordinate (30; 160) and bottom right coordinate (-30; -40). The left value is obviously wrong, the resulting rectangle should be equal to the bigger wrapping rectangle.
You can quickly confirm the bug by adding this case to the relevant unit test data collection (tst_QGeoRectangle::unite_data).
Attachments
For Gerrit Dashboard: QTBUG-72935 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
249668,4 | Fix QGeoRectangle::operator|= | 5.12 | qt/qtlocation | Status: MERGED | +2 | 0 |