Skip to content

Commit 5774bc4

Browse files
committed
fix crash
1 parent e880ee4 commit 5774bc4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/core/symbology-ng/qgssymbolv2.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ QgsMapUnitScale QgsSymbolV2::mapUnitScale() const
8989
}
9090

9191
QgsSymbolLayerV2List::const_iterator it = mLayers.constBegin();
92+
if( it == mLayers.constEnd() )
93+
return QgsMapUnitScale();
9294

9395
QgsMapUnitScale scale = ( *it )->mapUnitScale();
9496
++it;

0 commit comments

Comments
 (0)