diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-07-02 18:39:06 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-07-08 19:46:01 +0200 |
commit | b2a3314192a8a1dc06e0677e1430219dd8655cf0 (patch) | |
tree | ce6c46a70e48ec19db199b4031f9293faec8c410 /test/style | |
parent | f9601ae68595e5bd2d7951d8ecf8e11117b2162c (diff) | |
download | qtlocation-mapboxgl-b2a3314192a8a1dc06e0677e1430219dd8655cf0.tar.gz |
replace Style object immediately
this makes sure that adding custom sprite imagery will add them to the new Style object rather than
the old one in case a user adds new custom sprites immediately after changing a stylesheet
Diffstat (limited to 'test/style')
-rw-r--r-- | test/style/resource_loading.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/style/resource_loading.cpp b/test/style/resource_loading.cpp index d14be28789..75adfe72b1 100644 --- a/test/style/resource_loading.cpp +++ b/test/style/resource_loading.cpp @@ -32,7 +32,8 @@ public: transform_.setLatLngZoom({0, 0}, 16); const std::string style = util::read_file("test/fixtures/resources/style.json"); - style_ = std::make_unique<Style>(style, "", data_, util::RunLoop::getLoop()); + style_ = std::make_unique<Style>(data_, util::RunLoop::getLoop()); + style_->setJSON(style, ""); style_->setObserver(this); } |