Commit be335b78 authored by Volker Krause's avatar Volker Krause
Browse files

Handle missing plugin to load elevation model more gracefully

The tile generator doesn't need this, yet this is created, and fails to
load with a reduced set of plugins.
parent b1e3590f
......@@ -54,6 +54,10 @@ public:
Q_ASSERT( map );
const GeoSceneLayer *sceneLayer = map->layer( head->theme() );
if (!sceneLayer) {
mDebug() << "Failed to instantiate elevation map. No elevation will be returned.";
Q_ASSERT( sceneLayer );
m_textureLayer = dynamic_cast<GeoSceneTextureTileDataset*>( sceneLayer->datasets().first() );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment