Skip to content

Commit

Permalink
dxf export: (re-)enable linetype generation for pen styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 3, 2014
1 parent dbe4da8 commit ebae485
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/core/dxf/qgsdxfexport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,11 @@ void QgsDxfExport::writeEntitiesSymbolLevels( QgsVectorLayer* layer )
{
QgsSymbolV2LevelItem& item = level[i];
QHash< QgsSymbolV2*, QList<QgsFeature> >::iterator levelIt = features.find( item.symbol() );
if( levelIt == features.end() )
{
QgsDebugMsg( QString( "No feature found for symbol on %1 %2.%3" ).arg( layer->id() ).arg( l ).arg( i ) );
continue;
}

int llayer = item.layer();
QList<QgsFeature>& featureList = levelIt.value();
Expand Down Expand Up @@ -3727,7 +3732,6 @@ void QgsDxfExport::writeDefaultLinetypes()
writeGroup( 40, 0.0 );
}

#if 0
double das = dashSize();
double dss = dashSeparatorSize();
double dos = dotSize();
Expand Down Expand Up @@ -3757,7 +3761,6 @@ void QgsDxfExport::writeDefaultLinetypes()
dashDotDotVector[4] = dos;
dashDotDotVector[5] = dss;
writeLinetype( "DASHDOTDOT", dashDotDotVector, QgsSymbolV2::MapUnit );
#endif
}

void QgsDxfExport::writeSymbolLayerLinetype( const QgsSymbolLayerV2* symbolLayer )
Expand Down

0 comments on commit ebae485

Please sign in to comment.