summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-09-13 14:06:13 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-09-13 13:51:52 +0000
commita9e561489044b7906b6a660d20d4685d235f43e2 (patch)
tree4d323c64b41500562e2f0ffacdf26346e5fc7335
parent9e1523f40c6b376829c3eb513a7a5922fc2172ff (diff)
downloadqtlocation-a9e561489044b7906b6a660d20d4685d235f43e2.tar.gz
Set bounds in qgeorouteparserosrmv5.cpp
This has been missing until now. Change-Id: Ida8f7aa0d14e549d1ad1a04a85d096ff5801b71e Reviewed-by: BogDan Vatra <bogdan@kdab.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/maps/qgeorouteparserosrmv5.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/location/maps/qgeorouteparserosrmv5.cpp b/src/location/maps/qgeorouteparserosrmv5.cpp
index 275da2c3..39910229 100644
--- a/src/location/maps/qgeorouteparserosrmv5.cpp
+++ b/src/location/maps/qgeorouteparserosrmv5.cpp
@@ -48,6 +48,7 @@
#include <QtCore/QJsonArray>
#include <QtCore/QUrlQuery>
#include <QtPositioning/private/qlocationutils_p.h>
+#include <QtPositioning/qgeopath.h>
QT_BEGIN_NAMESPACE
@@ -996,6 +997,7 @@ QGeoRouteReply::Error QGeoRouteParserOsrmV5Private::parseReply(QList<QGeoRoute>
route.setTravelTime(travelTime);
if (!path.isEmpty()) {
route.setPath(path);
+ route.setBounds(QGeoPath(path).boundingGeoRectangle());
route.setFirstRouteSegment(segments.first());
}
route.setRouteLegs(routeLegs);