Skip to content

Commit 6505588

Browse files
author
jef
committed
fix warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@11745 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent de9e98b commit 6505588

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/app/qgsmeasuretool.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ void QgsMeasureTool::canvasMoveEvent( QMouseEvent * e )
140140
{
141141
if ( !mRightMouseClicked )
142142
{
143-
QgsVectorLayer *vl = dynamic_cast<QgsVectorLayer *>( mCanvas->currentLayer() );
144143
QgsPoint point = snapPoint( e->pos() );
145144

146145
mRubberBand->movePoint( point );
@@ -151,7 +150,6 @@ void QgsMeasureTool::canvasMoveEvent( QMouseEvent * e )
151150

152151
void QgsMeasureTool::canvasReleaseEvent( QMouseEvent * e )
153152
{
154-
QgsVectorLayer *vl = dynamic_cast<QgsVectorLayer *>( mCanvas->currentLayer() );
155153
QgsPoint point = snapPoint( e->pos() );
156154

157155
if ( e->button() == Qt::RightButton && ( e->buttons() & Qt::LeftButton ) == 0 ) // restart

0 commit comments

Comments
 (0)