Skip to content

Commit 2d50f13

Browse files
author
wonder
committedDec 10, 2006
Fixed broken support for using Ctrl in select tool to add features to selection.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6227 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent bc9aa3f commit 2d50f13

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 && e->state() != Qt::LeftButton + Qt::ControlModifier)
44+
if ( e->buttons() != Qt::LeftButton )
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::ControlModifier);
89+
bool lock = (e->modifiers() & Qt::ControlModifier);
9090
mCanvas->currentLayer()->select(&search, lock);
9191

9292
}

0 commit comments

Comments
 (0)
Please sign in to comment.