Skip to content
Permalink
Browse files

fix georeferencer sticky move gcp button

  • Loading branch information
uclaros authored and nyalldawson committed Jul 13, 2020
1 parent 387fcc5 commit 622e9a8e118965646d4bb145e80bc8f082cdf73a
Showing with 7 additions and 0 deletions.
  1. +6 −0 src/app/georeferencer/qgsgeorefmainwindow.cpp
  2. +1 −0 src/app/georeferencer/qgsgeorefmainwindow.h
@@ -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 );
}

@@ -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;

0 comments on commit 622e9a8

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