Move logging message after vertex check

When creating the list, we may have fewer than needed vertices, which
prevents calculating the area
This commit is contained in:
Seth Hillbrand 2024-03-29 16:46:08 -07:00
parent e4756c811e
commit 6c05f2c67c
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 false;
wxLogTrace( TRIANGULATE_TRACE, "Created list with %f area", firstVertex->area() );
firstVertex->updateList();
if( aHintData )