Skip to content
Permalink
Browse files

[DXF] do not list layer without geometry

  • Loading branch information
3nids committed Dec 9, 2013
1 parent c610f37 commit f848396a5863afa1bd4626b4dccebf2b91a7c56d
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/app/qgsdxfexportdialog.cpp
@@ -1,6 +1,7 @@
#include "qgsdxfexportdialog.h"
#include "qgsmaplayer.h"
#include "qgsmaplayerregistry.h"
#include "qgsvectorlayer.h"
#include "qgis.h"
#include <QFileDialog>
#include <QPushButton>
@@ -20,6 +21,9 @@ QgsDxfExportDialog::QgsDxfExportDialog( const QList<QgsMapLayer*>& layerKeys, QW
{
if ( layer->type() == QgsMapLayer::VectorLayer )
{
QgsVectorLayer* vl = dynamic_cast<QgsVectorLayer*>( layer );
if ( !vl->hasGeometryType() )
continue;
QListWidgetItem* layerItem = new QListWidgetItem( layer->name() );
layerItem->setData( Qt::UserRole, layer->id() );
layerItem->setFlags( Qt::ItemIsEnabled | Qt::ItemIsUserCheckable );

0 comments on commit f848396

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