mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
fix warning
git-svn-id: http://svn.osgeo.org/qgis/trunk@11745 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
de9e98b53e
commit
6505588920
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user