Skip to content

Commit

Permalink
fix enum
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Nov 15, 2018
1 parent fc8f88e commit f0396b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmaptooltrimextendfeature.cpp
Expand Up @@ -220,7 +220,7 @@ void QgsMapToolTrimExtendFeature::canvasReleaseEvent( QgsMapMouseEvent *e )
if ( mRubberBandLimit && mRubberBandLimit->isVisible() )
{
getPoints( match, pLimit1, pLimit2 );
mStep += 1;
mStep = StepExtend;
}
break;
case StepExtend:
Expand Down Expand Up @@ -266,7 +266,7 @@ void QgsMapToolTrimExtendFeature::keyPressEvent( QKeyEvent *e )

void QgsMapToolTrimExtendFeature::deactivate()
{
mStep = 0;
mStep = StepLimit;
mIsModified = false;
mIs3DLayer = false;
mIsIntersection = false;
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptooltrimextendfeature.h
Expand Up @@ -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.