mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Only switch Qgis to previous used tool if the current tool is the move point tool
This commit is contained in:
parent
a6c6fa805c
commit
d176f1d84d
@ -401,14 +401,16 @@ void QgsGeoreferencerMainWindow::generateGDALScript()
|
||||
void QgsGeoreferencerMainWindow::setAddPointTool()
|
||||
{
|
||||
mCanvas->setMapTool( mToolAddPoint );
|
||||
if ( mPrevQgisMapTool )
|
||||
QgsMapTool *activeQgisMapTool = QgisApp::instance()->mapCanvas()->mapTool();
|
||||
if ( activeQgisMapTool == mToolMovePointQgis )
|
||||
QgisApp::instance()->mapCanvas()->setMapTool( mPrevQgisMapTool );
|
||||
}
|
||||
|
||||
void QgsGeoreferencerMainWindow::setDeletePointTool()
|
||||
{
|
||||
mCanvas->setMapTool( mToolDeletePoint );
|
||||
if ( mPrevQgisMapTool )
|
||||
QgsMapTool *activeQgisMapTool = QgisApp::instance()->mapCanvas()->mapTool();
|
||||
if ( activeQgisMapTool == mToolMovePointQgis )
|
||||
QgisApp::instance()->mapCanvas()->setMapTool( mPrevQgisMapTool );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user