Skip to content

Commit ebae485

Browse files
committed
dxf export: (re-)enable linetype generation for pen styles
1 parent dbe4da8 commit ebae485

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/core/dxf/qgsdxfexport.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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

37633766
void QgsDxfExport::writeSymbolLayerLinetype( const QgsSymbolLayerV2* symbolLayer )

0 commit comments

Comments
 (0)