Skip to content
Permalink
Browse files

Fix geroreferencer crash when deleting a point through context menu

  • Loading branch information
Alexis Polti
Alexis Polti committed Mar 18, 2018
1 parent 10044fb commit fe9e1cd0567f178918cff63a914cb6e01a69d533
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/plugins/georeferencer/qgsgcplistwidget.cpp
@@ -194,10 +194,6 @@ void QgsGCPListWidget::showContextMenu( QPoint p )
connect( removeAction, &QAction::triggered, this, &QgsGCPListWidget::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()
@@ -214,6 +210,8 @@ void QgsGCPListWidget::editCell()
void QgsGCPListWidget::jumpToPoint()
{
QModelIndex index = static_cast<const QSortFilterProxyModel *>( model() )->mapToSource( currentIndex() );
mPrevRow = index.row();
mPrevColumn = index.column();
emit jumpToGCP( index.row() );
}

0 comments on commit fe9e1cd

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