Skip to content
Permalink
Browse files

Fix dxf export for label layers with labeling but without symbology

  • Loading branch information
mhugent committed Feb 12, 2018
1 parent 6698fb8 commit c9e637e6e76af5064ae7a2e952abc037fcccf672
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/core/dxf/qgsdxfexport.cpp
@@ -1072,12 +1072,9 @@ void QgsDxfExport::writeEntities()
else
{
QgsSymbolV2List symbolList = renderer->symbolsForFeature( fet, ctx );
if ( symbolList.size() < 1 )
{
continue;
}
bool hasSymbology = symbolList.size() > 0;

if ( mSymbologyExport == QgsDxfExport::SymbolLayerSymbology ) // symbol layer symbology, but layer does not use symbol levels
if ( hasSymbology && mSymbologyExport == QgsDxfExport::SymbolLayerSymbology ) // symbol layer symbology, but layer does not use symbol levels
{
QgsSymbolV2List::iterator symbolIt = symbolList.begin();
for ( ; symbolIt != symbolList.end(); ++symbolIt )
@@ -1089,7 +1086,7 @@ void QgsDxfExport::writeEntities()
}
}
}
else
else if ( hasSymbology )
{
// take first symbollayer from first symbol
QgsSymbolV2* s = symbolList.first();

0 comments on commit c9e637e

Please sign in to comment.
You can’t perform that action at this time.