Skip to content

Commit

Permalink
- Request for qgsmaptoolregularpolygoncentercorner.cpp and
Browse files Browse the repository at this point in the history
qgsmaptoolregularpolygoncenterpoint.cpp
- Remove useless mNumberSidesSpinBox->setMinimum( 3 );
  • Loading branch information
lbartoletti committed Oct 9, 2017
1 parent df947aa commit f0097fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions src/app/qgsmaptoolregularpolygoncentercorner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ QgsMapToolRegularPolygonCenterCorner::QgsMapToolRegularPolygonCenterCorner( QgsM

QgsMapToolRegularPolygonCenterCorner::~QgsMapToolRegularPolygonCenterCorner()
{
if ( mNumberSidesSpinBox )
{
deleteNumberSidesSpinBox();
}
deleteNumberSidesSpinBox();
}

void QgsMapToolRegularPolygonCenterCorner::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
Expand All @@ -50,10 +47,6 @@ void QgsMapToolRegularPolygonCenterCorner::cadCanvasReleaseEvent( QgsMapMouseEve
mTempRubberBand->show();

createNumberSidesSpinBox();
if ( mNumberSidesSpinBox )
{
mNumberSidesSpinBox->setMinimum( 3 );
}
}
}
}
Expand Down
9 changes: 1 addition & 8 deletions src/app/qgsmaptoolregularpolygoncenterpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ QgsMapToolRegularPolygonCenterPoint::QgsMapToolRegularPolygonCenterPoint( QgsMap

QgsMapToolRegularPolygonCenterPoint::~QgsMapToolRegularPolygonCenterPoint()
{
if ( mNumberSidesSpinBox )
{
deleteNumberSidesSpinBox();
}
deleteNumberSidesSpinBox();
}

void QgsMapToolRegularPolygonCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
Expand All @@ -50,10 +47,6 @@ void QgsMapToolRegularPolygonCenterPoint::cadCanvasReleaseEvent( QgsMapMouseEven
mTempRubberBand->show();

createNumberSidesSpinBox();
if ( mNumberSidesSpinBox )
{
mNumberSidesSpinBox->setMinimum( 3 );
}
}
}
}
Expand Down

0 comments on commit f0097fd

Please sign in to comment.