Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #6626 from alexispolti/fix_georeferencer_crash_18227
Browse files Browse the repository at this point in the history
[bugfix] Fix georeferencer crash when deleting a point through context menu #18227
  • Loading branch information
m-kuhn committed Apr 24, 2018
2 parents 409ec85 + fe9e1cd commit 11741ad
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/plugins/georeferencer/qgsgcplistwidget.cpp
Expand Up @@ -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()
Expand All @@ -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() );
}

Expand Down

0 comments on commit 11741ad

Please sign in to comment.