Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 84f85d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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>
Expand All @@ -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 );
Expand Down

0 comments on commit 84f85d4

Please sign in to comment.