Skip to content
Permalink
Browse files

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
  • Loading branch information
wonder
wonder committed Dec 10, 2006
1 parent bc9aa3f commit 2d50f13e9bbef541e68b27f77742289066a99f45
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmaptoolselect.cpp
@@ -41,7 +41,7 @@ void QgsMapToolSelect::canvasPressEvent(QMouseEvent * e)

void QgsMapToolSelect::canvasMoveEvent(QMouseEvent * e)
{
if (e->state() != Qt::LeftButton && e->state() != Qt::LeftButton + Qt::ControlModifier)
if ( e->buttons() != Qt::LeftButton )
return;

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

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

}

0 comments on commit 2d50f13

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