Skip to content
Permalink
Browse files

Fix geroreferencer crash when deleting a point through context menu

  • Loading branch information
Alexis Polti authored and m-kuhn committed Apr 24, 2018
1 parent c86045e commit 92aebefbd3630cd12b4f203f038b9e838937b1ee
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 92aebef

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