Skip to content

Commit

Permalink
Fix #2483 Crash in voronoi diagram code; failed to check for an empty…
Browse files Browse the repository at this point in the history
… collection
  • Loading branch information
gwaldron committed Apr 1, 2024
1 parent 754ac30 commit 5709100
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/osgEarth/ScreenSpaceLayoutCallout
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ namespace osgEarth { namespace Internal
}
}

if (local._points.empty())
return;

// Use a Voronoi diagram to find the best location for each callout.
// Use the "visual center" of the point's site as the label location.
jcv_diagram diagram;
Expand Down

0 comments on commit 5709100

Please sign in to comment.