Skip to content

Commit

Permalink
Applied patch #1907, thanks!
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@11533 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Aug 31, 2009
1 parent 3de6b9d commit 15b7c88
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/app/qgsmaptoolselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,16 @@ void QgsMapToolSelect::canvasReleaseEvent( QMouseEvent * e )
{
delete mRubberBand;
mRubberBand = 0;
// store the rectangle
mSelectRect.setRight( e->pos().x() );
mSelectRect.setBottom( e->pos().y() );

// Set valid values for rectangle's width and height
if ( mSelectRect.width() == 1 )
{
mSelectRect.setLeft( mSelectRect.left() + 1 );
}
if ( mSelectRect.height() == 1 )
{
mSelectRect.setBottom( mSelectRect.bottom() + 1 );
}
}

mDragging = FALSE;
Expand Down

0 comments on commit 15b7c88

Please sign in to comment.