Skip to content
Permalink
Browse files

Merge pull request #6849 from m-kuhn/fix_georeferencer_crash_18227

Fix geroreferencer crash when deleting a point through context menu
  • Loading branch information
m-kuhn committed Apr 24, 2018
2 parents c86045e + 92aebef commit 4009e4fe978127f68f8850584a566a731a455a34
Showing with 3 additions and 5 deletions.
  1. +3 −5 src/plugins/georeferencer/qgsgcplistwidget.cpp
@@ -200,10 +200,6 @@ void QgsGCPListWidget::showContextMenu( QPoint p )
connect( removeAction, SIGNAL( triggered() ), this, SLOT( removeRow() ) );
m.addAction( removeAction );
m.exec( QCursor::pos(), removeAction );

index = static_cast<const QSortFilterProxyModel*>( model() )->mapToSource( index );
mPrevRow = index.row();
mPrevColumn = index.column();
}

void QgsGCPListWidget::removeRow()
@@ -219,7 +215,9 @@ void QgsGCPListWidget::editCell()

void QgsGCPListWidget::jumpToPoint()
{
QModelIndex index = static_cast<const QSortFilterProxyModel*>( model() )->mapToSource( currentIndex() );
QModelIndex index = static_cast<const QSortFilterProxyModel *>( model() )->mapToSource( currentIndex() );
mPrevRow = index.row();
mPrevColumn = index.column();
emit jumpToGCP( index.row() );
}

0 comments on commit 4009e4f

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