diff options
author | Jason Wray <jason@kulturny.com> | 2015-10-01 11:06:11 -0400 |
---|---|---|
committer | Jason Wray <jason@kulturny.com> | 2015-10-21 11:38:01 -0400 |
commit | e5aab73b604cb723742ead8a7762e7c8430853bf (patch) | |
tree | c4248457d8a6e4645875ae8540b6f4e30f51a659 /src/mbgl | |
parent | ae5a345cc4685bdfd0de6fa73b126b08ec895ae5 (diff) | |
download | qtlocation-mapboxgl-e5aab73b604cb723742ead8a7762e7c8430853bf.tar.gz |
[core] only check for mapbox:// at the start of the failed request's URL
Diffstat (limited to 'src/mbgl')
-rw-r--r-- | src/mbgl/map/map_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 7647d027fe..f24216bb48 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -118,7 +118,7 @@ void MapContext::setStyleURL(const std::string& url) { if (res.status == Response::Successful) { loadStyleJSON(res.data, base); - } else if (res.status == Response::NotFound && (styleURL.find("mapbox://") != std::string::npos)) { + } else if (res.status == Response::NotFound && styleURL.find("mapbox://") == 0) { Log::Error(Event::Setup, "style %s could not be found or is an incompatible legacy map or style", styleURL.c_str()); } else { Log::Error(Event::Setup, "loading style failed: %s", res.message.c_str()); |