Skip to content

Commit

Permalink
LineString の .calculateBuffer(), .calculateRoundBuffer() を1頂点に対応 #1209 (
Browse files Browse the repository at this point in the history
  • Loading branch information
Raclamusi authored Mar 1, 2024
1 parent a5a6d7b commit 6911db1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Siv3D/src/Siv3D/Polygon/PolygonDetail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ namespace s3d
{
Polygon CalculateBuffer(const LineString& points, const double distance, CloseRing closeRing, int32 bufferQuality)
{
if (points.size() < 2)
if (points.isEmpty())
{
return{};
}
Expand Down 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.isEmpty())
{
return{};
}
Expand Down

0 comments on commit 6911db1

Please sign in to comment.