Skip to content

Commit

Permalink
Change rubberband of possible centers to point.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti committed Oct 3, 2017
1 parent 2cd4c42 commit 7f4775c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/qgsmaptoolcircle2tangentspoint.cpp
Expand Up @@ -261,9 +261,9 @@ void QgsMapToolCircle2TangentsPoint::radiusSpinBoxChanged( int radius )
std::unique_ptr<QgsMultiPolygonV2> rb( new QgsMultiPolygonV2() );
for ( int i = 0; i < mCenters.size(); ++i )
{
// TODO: Point instead of polygon?
std::unique_ptr<QgsGeometryRubberBand> tempRB( createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true ) );
tempRB->setGeometry( QgsCircle( QgsPoint( mCenters.at( i ) ), static_cast<int>( log10( mRadius ) ) + 1 ).toPolygon() );
std::unique_ptr<QgsGeometryRubberBand> tempRB( createGeometryRubberBand( QgsWkbTypes::PointGeometry, true ) );
std::unique_ptr<QgsPoint> tempCenter( new QgsPoint( mCenters.at( i ) ) );
tempRB->setGeometry( tempCenter.release() );
tempRB->show();
mRubberBands.append( tempRB.release() );
}
Expand Down

0 comments on commit 7f4775c

Please sign in to comment.