Skip to content
Permalink
Browse files

Applied patch #1907, thanks!

git-svn-id: http://svn.osgeo.org/qgis/trunk@11533 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann
homann committed Aug 31, 2009
1 parent 3de6b9d commit 15b7c88c7a67e58c2c779f0ae9f5703ca37f0324
Showing with 10 additions and 3 deletions.
  1. +10 −3 src/app/qgsmaptoolselect.cpp
@@ -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;

0 comments on commit 15b7c88

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