Skip to content

Commit

Permalink
solidtest: Fix segfault in setExteriorShell test
Browse files Browse the repository at this point in the history
The `Polyhedralsurface` takes ownership of the shell.

This fixes commit 481cce2.
  • Loading branch information
ptitjano committed Oct 25, 2024
1 parent f29b0d6 commit 27c13f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/SFCGAL/SolidTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ BOOST_AUTO_TEST_CASE(solidSetExteriorRingTest)
BOOST_CHECK(!shell1->isEmpty());
BOOST_CHECK(solid->isEmpty());

solid->setExteriorShell(shell1);
solid->setExteriorShell(shell1->clone());
BOOST_CHECK_EQUAL(solid->numShells(), 1);
BOOST_CHECK(!solid->isEmpty());
BOOST_CHECK(algorithm::covers3D(solid->exteriorShell(), *shell1));
Expand Down

0 comments on commit 27c13f8

Please sign in to comment.