Skip to content
Permalink
Browse files

Merge pull request #1023 from 3nids/dxfgeomlayer

[DXF] do not list layer without geometry
  • Loading branch information
mhugent committed Dec 10, 2013
2 parents c21c90a + f848396 commit 84f85d48ba8e3e7f3d2bfb228bc6674fd2a8e7b3
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>
@@ -22,6 +23,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 84f85d4

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