summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/raster_tile.cpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-02-22 15:47:37 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-02-22 22:28:29 +0100
commit9ffbfdc7b94ec60bc0a5253a56121b7bf707a23f (patch)
tree225f1e487f6cebcea79ad9fbec65174670c208e7 /src/mbgl/tile/raster_tile.cpp
parent0562bcb418d8e1af7e181264bb763a071854f7e1 (diff)
downloadqtlocation-mapboxgl-9ffbfdc7b94ec60bc0a5253a56121b7bf707a23f.tar.gz
[core] don't treat empty raster tiles as "DataAvailability::All"
Diffstat (limited to 'src/mbgl/tile/raster_tile.cpp')
-rw-r--r--src/mbgl/tile/raster_tile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/tile/raster_tile.cpp b/src/mbgl/tile/raster_tile.cpp
index c7a051f841..2347f8c881 100644
--- a/src/mbgl/tile/raster_tile.cpp
+++ b/src/mbgl/tile/raster_tile.cpp
@@ -41,13 +41,13 @@ void RasterTile::setData(std::shared_ptr<const std::string> data,
void RasterTile::onParsed(std::unique_ptr<Bucket> result) {
bucket = std::move(result);
- availableData = DataAvailability::All;
+ availableData = bucket ? DataAvailability::All : DataAvailability::None;
observer->onTileChanged(*this);
}
void RasterTile::onError(std::exception_ptr err) {
bucket.reset();
- availableData = DataAvailability::All;
+ availableData = DataAvailability::None;
observer->onTileError(*this, err);
}