From 9921fb4f2bba31093ef5168b274489500b96d238 Mon Sep 17 00:00:00 2001 From: Alex Blasche Date: Mon, 19 Jan 2015 15:38:36 +0100 Subject: Fix OSM routing service. It sends route instructions with nine entries. I have not been able to find documentation what the 9th entry represents but in 99% of all cases there is a 9th entry. Right new we don't need it though and the OSM plugin should be permissive of additional route instructions anyway. Change-Id: I9ef81bc9059de1b634e94705b76c7c9643153435 Reviewed-by: Aaron McCarthy --- src/plugins/geoservices/osm/qgeoroutereplyosm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/geoservices/osm/qgeoroutereplyosm.cpp') diff --git a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp index f2647f3d..5641bfa4 100644 --- a/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp +++ b/src/plugins/geoservices/osm/qgeoroutereplyosm.cpp @@ -274,7 +274,7 @@ static QGeoRoute constructRoute(const QByteArray &geometry, const QJsonArray &in for (int i = instructions.count() - 1; i >= 0; --i) { QJsonArray instruction = instructions.at(i).toArray(); - if (instruction.count() != 8) { + if (instruction.count() < 8) { qWarning("Instruction does not contain enough fields."); continue; } -- cgit v1.2.1