Skip to content

Commit 5774bc4

Browse files
committed
fix crash
1 parent e880ee4 commit 5774bc4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/symbology-ng/qgssymbolv2.cpp

+2
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)