Skip to content
Permalink
Browse files

remove useless variable mSnappedToVertex

  • Loading branch information
lbartoletti authored and nyalldawson committed Mar 13, 2019
1 parent 6fbe8cf commit 47755194a28b3a38cf82d6b32b1cbe67f7e45bd7
Showing with 1 addition and 5 deletions.
  1. +0 −3 src/gui/qgsadvanceddigitizingdockwidget.cpp
  2. +1 −2 src/gui/qgsadvanceddigitizingdockwidget.h
@@ -555,8 +555,6 @@ bool QgsAdvancedDigitizingDockWidget::applyConstraints( QgsMapMouseEvent *e )

mSnapMatch = context.snappingUtils->snapToMap( point );

mSnappedToVertex = mSnapMatch.hasVertex();

// update the point list
updateCurrentPoint( point );

@@ -1028,7 +1026,6 @@ void QgsAdvancedDigitizingDockWidget::clearPoints()
{
mCadPointList.clear();
mSnappedSegment.clear();
mSnappedToVertex = false;

updateCapacity();
}
@@ -316,7 +316,7 @@ class GUI_EXPORT QgsAdvancedDigitizingDockWidget : public QgsDockWidget, private
/**
* Is it snapped to a vertex
*/
inline bool snappedToVertex() const { return mSnappedToVertex; }
inline bool snappedToVertex() const { return ( mSnapMatch.isValid() && mSnapMatch.hasVertex() ); }

/**
* Snapped to a segment
@@ -484,7 +484,6 @@ class GUI_EXPORT QgsAdvancedDigitizingDockWidget : public QgsDockWidget, private
// point list and current snap point / segment
QList<QgsPointXY> mCadPointList;
QList<QgsPointXY> mSnappedSegment;
bool mSnappedToVertex = false;

bool mSessionActive = false;

0 comments on commit 4775519

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