diff options
author | Justyna Janczyszyn <4153982+jjanczyszyn@users.noreply.github.com> | 2018-08-20 15:14:49 +0200 |
---|---|---|
committer | Justyna Janczyszyn <justyna.janczyszyn@gmail.com> | 2018-08-22 17:26:48 +0200 |
commit | c83012f66adb6acbd0e6d27a1562b83515ebc613 (patch) | |
tree | e7daf4ce2810376ee37f1371cca1218af1ee8106 /src/mbgl/style | |
parent | 7395a259a58b99dcb6b3786a37ae12d0e6f8348f (diff) | |
download | qtlocation-mapboxgl-c83012f66adb6acbd0e6d27a1562b83515ebc613.tar.gz |
fixed validation message for bounds
Diffstat (limited to 'src/mbgl/style')
-rw-r--r-- | src/mbgl/style/conversion/tileset.cpp | 4 |
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); |