summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustyna Janczyszyn <4153982+jjanczyszyn@users.noreply.github.com>2018-08-20 15:14:49 +0200
committerJustyna Janczyszyn <4153982+jjanczyszyn@users.noreply.github.com>2018-08-20 15:21:12 +0200
commit02650430e85885e7cca04a29ff1d351ba16ac262 (patch)
treecfc15f7a9948a9e351ef6796c445b4fafe1333bb
parent112bbc7ab289298094d6e6593437a71ec8029caa (diff)
downloadqtlocation-mapboxgl-upstream/fix/bounds-validation-message.tar.gz
fixed validation message for boundsupstream/fix/bounds-validation-message
-rw-r--r--src/mbgl/style/conversion/tileset.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/style/conversion/tileset.cpp b/src/mbgl/style/conversion/tileset.cpp
index 40575838ea..0db07f4395 100644
--- a/src/mbgl/style/conversion/tileset.cpp
+++ b/src/mbgl/style/conversion/tileset.cpp
@@ -97,12 +97,12 @@ optional<Tileset> Converter<Tileset>::operator()(const Convertible& value, Error
bottom = util::clamp(*bottom, -90.0, 90.0);
top = util::clamp(*top, -90.0, 90.0);
if (*top < *bottom){
- error.message = "bounds bottom latitude must be smaller than top latitude";
+ error.message = "bounds bottom latitude must be less than or equal to top latitude";
return nullopt;
}
if(*left > *right) {
- error.message = "bounds left longitude should be less than right longitude";
+ error.message = "bounds left longitude must be less than or equal to right longitude";
return nullopt;
}
left = util::max(-180.0, *left);