Skip to content

Commit 84f85d4

Browse files
committedDec 10, 2013
Merge pull request #1023 from 3nids/dxfgeomlayer
[DXF] do not list layer without geometry
2 parents c21c90a + f848396 commit 84f85d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/app/qgsdxfexportdialog.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "qgsdxfexportdialog.h"
22
#include "qgsmaplayer.h"
33
#include "qgsmaplayerregistry.h"
4+
#include "qgsvectorlayer.h"
45
#include "qgis.h"
56
#include <QFileDialog>
67
#include <QPushButton>
@@ -22,6 +23,9 @@ QgsDxfExportDialog::QgsDxfExportDialog( const QList<QgsMapLayer*>& layerKeys, QW
2223
{
2324
if ( layer->type() == QgsMapLayer::VectorLayer )
2425
{
26+
QgsVectorLayer* vl = dynamic_cast<QgsVectorLayer*>( layer );
27+
if ( !vl->hasGeometryType() )
28+
continue;
2529
QListWidgetItem* layerItem = new QListWidgetItem( layer->name() );
2630
layerItem->setData( Qt::UserRole, layer->id() );
2731
layerItem->setFlags( Qt::ItemIsEnabled | Qt::ItemIsUserCheckable );

0 commit comments

Comments
 (0)
Please sign in to comment.