Ignore invalid center coordinates on maps
authorAlex Blasche <alexander.blasche@digia.com>
Mon, 7 Apr 2014 09:36:00 +0000 (11:36 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 8 Apr 2014 07:52:23 +0000 (09:52 +0200)
commit400c7fa8e767c65aab4b8a1d5161b5259080cec9
tree9d5dc04f076a80b1ffe9c18771fde0364877b718
parent19d76d5d7799aa3b98a1e3e0e6e569df14886a54
Ignore invalid center coordinates on maps

This causes undefined behavior and plenty of painter errors due to the
occurrence of NaN.

At the same time we change the default center to
London. Previously it was in the middle of the Atlantic. This led to
confusions because the all-blue display was mistaken for
nothing/empty/invalid tiles (which is represented by grey). By showing
the city of London we ensure that the default shows an easily
recognisable area.

Change-Id: I65a99d69d961b00a899120e190030e08a5ca0498
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
src/imports/location/qdeclarativegeomap.cpp