summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-07-21 10:12:43 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-07-24 15:19:15 -0700
commita1782481393ad7fe5fa976bda348127248c6bd3b (patch)
tree5080495a0b434d3d9d44c15a0bc841947bbd9af8 /src
parent264ca961bddba621418303bf193dd68d9ce29791 (diff)
downloadqtlocation-mapboxgl-a1782481393ad7fe5fa976bda348127248c6bd3b.tar.gz
[node] Reset Style::Impl::lastError when loading a new style
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/style/style_impl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/style/style_impl.cpp b/src/mbgl/style/style_impl.cpp
index 9cc2588ca7..604af4be20 100644
--- a/src/mbgl/style/style_impl.cpp
+++ b/src/mbgl/style/style_impl.cpp
@@ -38,6 +38,7 @@ Style::Impl::Impl(Scheduler& scheduler_, FileSource& fileSource_, float pixelRat
Style::Impl::~Impl() = default;
void Style::Impl::loadJSON(const std::string& json_) {
+ lastError = nullptr;
observer->onStyleLoading();
url.clear();
@@ -45,6 +46,7 @@ void Style::Impl::loadJSON(const std::string& json_) {
}
void Style::Impl::loadURL(const std::string& url_) {
+ lastError = nullptr;
observer->onStyleLoading();
loaded = false;