fix warning

git-svn-id: http://svn.osgeo.org/qgis/trunk@11745 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2009-10-03 20:33:09 +00:00
parent de9e98b53e
commit 6505588920

View File

@ -140,7 +140,6 @@ void QgsMeasureTool::canvasMoveEvent( QMouseEvent * e )
{ {
if ( !mRightMouseClicked ) if ( !mRightMouseClicked )
{ {
QgsVectorLayer *vl = dynamic_cast<QgsVectorLayer *>( mCanvas->currentLayer() );
QgsPoint point = snapPoint( e->pos() ); QgsPoint point = snapPoint( e->pos() );
mRubberBand->movePoint( point ); mRubberBand->movePoint( point );
@ -151,7 +150,6 @@ void QgsMeasureTool::canvasMoveEvent( QMouseEvent * e )
void QgsMeasureTool::canvasReleaseEvent( QMouseEvent * e ) void QgsMeasureTool::canvasReleaseEvent( QMouseEvent * e )
{ {
QgsVectorLayer *vl = dynamic_cast<QgsVectorLayer *>( mCanvas->currentLayer() );
QgsPoint point = snapPoint( e->pos() ); QgsPoint point = snapPoint( e->pos() );
if ( e->button() == Qt::RightButton && ( e->buttons() & Qt::LeftButton ) == 0 ) // restart if ( e->button() == Qt::RightButton && ( e->buttons() & Qt::LeftButton ) == 0 ) // restart