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:
parent
6c7261a223
commit
892c5726f5
|
@ -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();
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue