Navigation Menu

Skip to content

Commit

Permalink
fix georeferencer sticky move gcp button
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Jul 13, 2020
1 parent 387fcc5 commit 622e9a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/georeferencer/qgsgeorefmainwindow.cpp
Expand Up @@ -401,16 +401,22 @@ void QgsGeoreferencerMainWindow::generateGDALScript()
void QgsGeoreferencerMainWindow::setAddPointTool()
{
mCanvas->setMapTool( mToolAddPoint );
QgisApp::instance()->mapCanvas()->setMapTool( mPrevQgisMapTool );
}

void QgsGeoreferencerMainWindow::setDeletePointTool()
{
mCanvas->setMapTool( mToolDeletePoint );
QgisApp::instance()->mapCanvas()->setMapTool( mPrevQgisMapTool );
}

void QgsGeoreferencerMainWindow::setMovePointTool()
{
mCanvas->setMapTool( mToolMovePoint );
QgsMapTool *activeQgisMapTool = QgisApp::instance()->mapCanvas()->mapTool();
if ( activeQgisMapTool == mToolMovePointQgis )
return;
mPrevQgisMapTool = activeQgisMapTool;
QgisApp::instance()->mapCanvas()->setMapTool( mToolMovePointQgis );
}

Expand Down
1 change: 1 addition & 0 deletions src/app/georeferencer/qgsgeorefmainwindow.h
Expand Up @@ -235,6 +235,7 @@ class QgsGeoreferencerMainWindow : public QMainWindow, private Ui::QgsGeorefPlug
QgsMapTool *mToolZoomIn = nullptr;
QgsMapTool *mToolZoomOut = nullptr;
QgsMapTool *mToolPan = nullptr;
QgsMapTool *mPrevQgisMapTool = nullptr;
QgsGeorefToolAddPoint *mToolAddPoint = nullptr;
QgsGeorefToolDeletePoint *mToolDeletePoint = nullptr;
QgsGeorefToolMovePoint *mToolMovePoint = nullptr;
Expand Down

0 comments on commit 622e9a8

Please sign in to comment.