Skip to content

Commit 11741ad

Browse files
authoredApr 24, 2018
Merge pull request #6626 from alexispolti/fix_georeferencer_crash_18227
[bugfix] Fix georeferencer crash when deleting a point through context menu #18227
2 parents 409ec85 + fe9e1cd commit 11741ad

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎src/plugins/georeferencer/qgsgcplistwidget.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,6 @@ void QgsGCPListWidget::showContextMenu( QPoint p )
194194
connect( removeAction, &QAction::triggered, this, &QgsGCPListWidget::removeRow );
195195
m.addAction( removeAction );
196196
m.exec( QCursor::pos(), removeAction );
197-
198-
index = static_cast<const QSortFilterProxyModel *>( model() )->mapToSource( index );
199-
mPrevRow = index.row();
200-
mPrevColumn = index.column();
201197
}
202198

203199
void QgsGCPListWidget::removeRow()
@@ -214,6 +210,8 @@ void QgsGCPListWidget::editCell()
214210
void QgsGCPListWidget::jumpToPoint()
215211
{
216212
QModelIndex index = static_cast<const QSortFilterProxyModel *>( model() )->mapToSource( currentIndex() );
213+
mPrevRow = index.row();
214+
mPrevColumn = index.column();
217215
emit jumpToGCP( index.row() );
218216
}
219217

0 commit comments

Comments
 (0)
Please sign in to comment.