Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed May 15, 2014
1 parent e880ee4 commit 5774bc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/symbology-ng/qgssymbolv2.cpp
Expand Up @@ -89,6 +89,8 @@ QgsMapUnitScale QgsSymbolV2::mapUnitScale() const
}

QgsSymbolLayerV2List::const_iterator it = mLayers.constBegin();
if( it == mLayers.constEnd() )
return QgsMapUnitScale();

QgsMapUnitScale scale = ( *it )->mapUnitScale();
++it;
Expand Down

0 comments on commit 5774bc4

Please sign in to comment.