Skip to content

Commit

Permalink
allow to digitize curves for add part / add ring / fill ring map tools (
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 3, 2022
1 parent 1e9578a commit b76838b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsmaptooladdpart.cpp
Expand Up @@ -49,7 +49,7 @@ bool QgsMapToolAddPart::supportsTechnique( QgsMapToolCapture::CaptureTechnique t
return true;

case QgsMapToolCapture::CircularString:
return false;
return mode() != QgsMapToolCapture::CapturePoint;
}
return false;
}
Expand Down
4 changes: 1 addition & 3 deletions src/app/qgsmaptooladdring.cpp
Expand Up @@ -39,10 +39,8 @@ bool QgsMapToolAddRing::supportsTechnique( QgsMapToolCapture::CaptureTechnique t
{
case QgsMapToolCapture::StraightSegments:
case QgsMapToolCapture::Streaming:
return true;

case QgsMapToolCapture::CircularString:
return false;
return true;
}
return false;
}
Expand Down
4 changes: 1 addition & 3 deletions src/app/qgsmaptoolfillring.cpp
Expand Up @@ -39,10 +39,8 @@ bool QgsMapToolFillRing::supportsTechnique( QgsMapToolCapture::CaptureTechnique
{
case QgsMapToolCapture::StraightSegments:
case QgsMapToolCapture::Streaming:
return true;

case QgsMapToolCapture::CircularString:
return false;
return true;
}
return false;
}
Expand Down

0 comments on commit b76838b

Please sign in to comment.