Skip to content

Commit 7f4775c

Browse files
committed
Change rubberband of possible centers to point.
1 parent 2cd4c42 commit 7f4775c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/qgsmaptoolcircle2tangentspoint.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ void QgsMapToolCircle2TangentsPoint::radiusSpinBoxChanged( int radius )
261261
std::unique_ptr<QgsMultiPolygonV2> rb( new QgsMultiPolygonV2() );
262262
for ( int i = 0; i < mCenters.size(); ++i )
263263
{
264-
// TODO: Point instead of polygon?
265-
std::unique_ptr<QgsGeometryRubberBand> tempRB( createGeometryRubberBand( ( mode() == CapturePolygon ) ? QgsWkbTypes::PolygonGeometry : QgsWkbTypes::LineGeometry, true ) );
266-
tempRB->setGeometry( QgsCircle( QgsPoint( mCenters.at( i ) ), static_cast<int>( log10( mRadius ) ) + 1 ).toPolygon() );
264+
std::unique_ptr<QgsGeometryRubberBand> tempRB( createGeometryRubberBand( QgsWkbTypes::PointGeometry, true ) );
265+
std::unique_ptr<QgsPoint> tempCenter( new QgsPoint( mCenters.at( i ) ) );
266+
tempRB->setGeometry( tempCenter.release() );
267267
tempRB->show();
268268
mRubberBands.append( tempRB.release() );
269269
}

0 commit comments

Comments
 (0)