FIX: auto arrange crashes with a single triangle

convexHull of a triangle should be valid.

jira: STUDIO-8297
Change-Id: Icb4b2310c173f88f2b499c8407d79ff00850dc77
This commit is contained in:
Arthur 2024-09-27 09:40:46 +08:00 committed by Lane.Wei
parent be413220df
commit f3e5af114b
1 changed files with 1 additions and 1 deletions

View File

@ -1053,7 +1053,7 @@ inline S convexHull(const S& sh, const PathTag&)
namespace sl = shapelike;
size_t edges = sl::cend(sh) - sl::cbegin(sh);
if(edges <= 3) return {};
if(edges < 3) return {};
bool closed = false;
std::vector<Point> U, L;