Move logging message after vertex check

When creating the list, we may have fewer than needed vertices, which
prevents calculating the area

(cherry picked from commit 6c05f2c67c)
This commit is contained in:
Seth Hillbrand 2024-03-29 16:46:08 -07:00
parent 6c7261a223
commit 892c5726f5
1 changed files with 2 additions and 2 deletions

View File

@ -81,11 +81,11 @@ public:
/// therefore cannot be polygons
VERTEX* firstVertex = createList( aPoly );
wxLogTrace( TRIANGULATE_TRACE, "Created list with %f area", firstVertex->area() );
if( !firstVertex || firstVertex->prev == firstVertex->next )
return true;
wxLogTrace( TRIANGULATE_TRACE, "Created list with %f area", firstVertex->area() );
firstVertex->updateList();
/**