Skip to content

Commit

Permalink
Use toCircularString instead of toPolygon for circle.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Oct 9, 2017
1 parent f0097fd commit ab78d71
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle2points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ void QgsMapToolCircle2Points::cadCanvasMoveEvent( QgsMapMouseEvent *e )
if ( mTempRubberBand )
{
mCircle = QgsCircle().from2Points( mPoints.at( 0 ), mapPoint );
mTempRubberBand->setGeometry( mCircle.toPolygon() );
mTempRubberBand->setGeometry( mCircle.toCircularString( true ) );
}
}
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle2tangentspoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void QgsMapToolCircle2TangentsPoint::cadCanvasMoveEvent( QgsMapMouseEvent *e )
}

mCircle = QgsCircle( center, mRadius );
mTempRubberBand->setGeometry( mCircle.toPolygon() );
mTempRubberBand->setGeometry( mCircle.toCircularString( true ) );
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcircle3points.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void QgsMapToolCircle3Points::cadCanvasMoveEvent( QgsMapMouseEvent *e )
case 2:
{
mCircle = QgsCircle().from3Points( mPoints.at( 0 ), mPoints.at( 1 ), mapPoint );
mTempRubberBand->setGeometry( mCircle.toPolygon() );
mTempRubberBand->setGeometry( mCircle.toCircularString( true ) );
}
break;
default:
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolcirclecenterpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ void QgsMapToolCircleCenterPoint::cadCanvasMoveEvent( QgsMapMouseEvent *e )
if ( mTempRubberBand )
{
mCircle = QgsCircle().fromCenterPoint( mPoints.at( 0 ), mapPoint );
mTempRubberBand->setGeometry( mCircle.toPolygon() );
mTempRubberBand->setGeometry( mCircle.toCircularString( true ) );
}
}

0 comments on commit ab78d71

Please sign in to comment.