Skip to content
Permalink
Browse files

Change rubberband of possible centers to point.

  • Loading branch information
lbartoletti committed Oct 3, 2017
1 parent 2cd4c42 commit 7f4775c1558ffab12369dbe2beb2411a5faafd23
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgsmaptoolcircle2tangentspoint.cpp
@@ -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() );
}

0 comments on commit 7f4775c

Please sign in to comment.
You can’t perform that action at this time.