Skip to content

Commit 5de4b20

Browse files
author
mhugent
committed
enabled control button for selection in map canvas
git-svn-id: http://svn.osgeo.org/qgis/trunk@4960 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent dd87fc1 commit 5de4b20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/qgsmaptoolselect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void QgsMapToolSelect::canvasPressEvent(QMouseEvent * e)
4141

4242
void QgsMapToolSelect::canvasMoveEvent(QMouseEvent * e)
4343
{
44-
if (e->state() != Qt::LeftButton)
44+
if (e->state() != Qt::LeftButton && e->state() != Qt::LeftButton + Qt::ControlModifier)
4545
return;
4646

4747
if (!mDragging)
@@ -86,7 +86,7 @@ void QgsMapToolSelect::canvasReleaseEvent(QMouseEvent * e)
8686

8787
// if Ctrl key is pressed, selected features will be added to selection
8888
// instead of removing old selection
89-
bool lock = (e->state() == Qt::LeftButton + Qt::ControlModifier);
89+
bool lock = (e->state() == Qt::ControlModifier);
9090
mCanvas->currentLayer()->select(&search, lock);
9191

9292
}

0 commit comments

Comments
 (0)