Skip to content

Commit

Permalink
LineString::calculateRoundBuffer() でサイズが1のときに円を返すよう変更 #1209
Browse files Browse the repository at this point in the history
  • Loading branch information
Raclamusi committed Feb 29, 2024
1 parent a5a6d7b commit 32bdd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Siv3D/src/Siv3D/Polygon/PolygonDetail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ namespace s3d

Polygon CalculateRoundBuffer(const LineString& points, const double distance, CloseRing closeRing, int32 bufferQuality)
{
if (points.size() < 2)
if (points.size() < 1)
{
return{};
}
Expand Down

0 comments on commit 32bdd9a

Please sign in to comment.