Skip to content
Permalink
Browse files

remove useless variable mSnappedToVertex

  • Loading branch information
lbartoletti authored and wonder-sk committed Mar 12, 2019
1 parent 2a2b7a6 commit 1ac18f919e0df3e5c238b88db6f5c43e3c908eb2
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();
}
@@ -317,7 +317,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
@@ -485,7 +485,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 1ac18f9

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