Skip to content
Permalink
Browse files

[bugfix] Fix crash in node editor

Fixes #17958 Node tool crashes QGIS when changing a value
  • Loading branch information
elpaso committed Jan 25, 2018
1 parent 8b682da commit 0e2995c5b654eafe46c4b291f36c5ba660c0d28b
Showing with 0 additions and 9 deletions.
  1. +0 −6 src/app/nodetool/qgsnodeeditor.cpp
  2. +0 −3 src/app/nodetool/qgsnodeeditor.h
@@ -68,7 +68,6 @@ QgsNodeEditorModel::QgsNodeEditorModel( QgsVectorLayer *layer, QgsSelectedFeatur
mWidgetFont = parentWidget->font();
}

connect( mSelectedFeature, &QgsSelectedFeature::vertexMapChanged, this, &QgsNodeEditorModel::featureChanged );
}

int QgsNodeEditorModel::rowCount( const QModelIndex &parent ) const
@@ -273,11 +272,6 @@ bool QgsNodeEditorModel::calcR( int row, double &r, double &minRadius ) const
return true;
}

void QgsNodeEditorModel::featureChanged()
{
//TODO - avoid reset
reset();
}

QgsNodeEditor::QgsNodeEditor(
QgsVectorLayer *layer,
@@ -64,9 +64,6 @@ class QgsNodeEditorModel : public QAbstractTableModel

bool calcR( int row, double &r, double &minRadius ) const;

private slots:

void featureChanged();
};

class QgsNodeEditor : public QgsDockWidget

0 comments on commit 0e2995c

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