Commit 6ee45333 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Do not crash when toggling projections

Only happened when disabling the last texture layer in a map theme
with mixed vector and texture layers (e.g. disabling osm texture tiles
in vector osm)
parent a1359dc0
......@@ -396,7 +396,7 @@ void TextureLayer::setShowTileId( bool show )
void TextureLayer::setProjection( Projection projection )
if ( d->m_textures.isEmpty() ) {
if ( d->m_textures.isEmpty() || textureLayerCount() == 0 ) {
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