Skip to content
Permalink
Browse files

fix enum

  • Loading branch information
lbartoletti committed Nov 15, 2018
1 parent fc8f88e commit f0396b990d3a8a5543287e1b9a3aac92ee7ef1ea
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/app/qgsmaptooltrimextendfeature.cpp
  2. +1 −1 src/app/qgsmaptooltrimextendfeature.h
@@ -220,7 +220,7 @@ void QgsMapToolTrimExtendFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
if ( mRubberBandLimit && mRubberBandLimit->isVisible() )
{
getPoints( match, pLimit1, pLimit2 );
mStep += 1;
mStep = StepExtend;
}
break;
case StepExtend:
@@ -266,7 +266,7 @@ void QgsMapToolTrimExtendFeature::keyPressEvent( QKeyEvent *e )

void QgsMapToolTrimExtendFeature::deactivate()
{
mStep = 0;
mStep = StepLimit;
mIsModified = false;
mIs3DLayer = false;
mIsIntersection = false;
@@ -72,7 +72,7 @@ class APP_EXPORT QgsMapToolTrimExtendFeature : public QgsMapToolEdit
StepExtend,
};
//! The first step (0): choose the limit. The second step (1): choose the segment to trim/extend
int mStep = StepLimit;
Step mStep = StepLimit;
};

#endif // QGSMAPTOOLTRIMEXTENDFEATURE_H

0 comments on commit f0396b9

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