Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 4009e4f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/plugins/georeferencer/qgsgcplistwidget.cpp
Expand Up @@ -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()
Expand All @@ -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() );
}

Expand Down

0 comments on commit 4009e4f

Please sign in to comment.