File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -997,6 +997,11 @@ void QgsDxfExport::writeEntitiesSymbolLevels( QgsVectorLayer* layer )
997997 {
998998 QgsSymbolV2LevelItem& item = level[i];
999999 QHash< QgsSymbolV2*, QList<QgsFeature> >::iterator levelIt = features.find ( item.symbol () );
1000+ if ( levelIt == features.end () )
1001+ {
1002+ QgsDebugMsg ( QString ( " No feature found for symbol on %1 %2.%3" ).arg ( layer->id () ).arg ( l ).arg ( i ) );
1003+ continue ;
1004+ }
10001005
10011006 int llayer = item.layer ();
10021007 QList<QgsFeature>& featureList = levelIt.value ();
@@ -3727,7 +3732,6 @@ void QgsDxfExport::writeDefaultLinetypes()
37273732 writeGroup ( 40 , 0.0 );
37283733 }
37293734
3730- #if 0
37313735 double das = dashSize ();
37323736 double dss = dashSeparatorSize ();
37333737 double dos = dotSize ();
@@ -3757,7 +3761,6 @@ void QgsDxfExport::writeDefaultLinetypes()
37573761 dashDotDotVector[4 ] = dos;
37583762 dashDotDotVector[5 ] = dss;
37593763 writeLinetype ( " DASHDOTDOT" , dashDotDotVector, QgsSymbolV2::MapUnit );
3760- #endif
37613764}
37623765
37633766void QgsDxfExport::writeSymbolLayerLinetype ( const QgsSymbolLayerV2* symbolLayer )
You can’t perform that action at this time.
0 commit comments