|
KiCad PCB EDA Suite
|
Regression test for issue #24391: entering a group could reach VIEW::Hide() with a null VIEW_ITEM, which was dereferenced (viewPrivData() on a null this) and crashed. More...
Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (HideAndSetVisibleTolerateNullItem) | |
Regression test for issue #24391: entering a group could reach VIEW::Hide() with a null VIEW_ITEM, which was dereferenced (viewPrivData() on a null this) and crashed.
The public mutators must tolerate a null item the same way they already tolerate an item with no view data.
Definition in file test_view_null_safety.cpp.
| BOOST_AUTO_TEST_CASE | ( | HideAndSetVisibleTolerateNullItem | ) |
Definition at line 42 of file test_view_null_safety.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_TEST(), KIGFX::VIEW::Hide(), and KIGFX::VIEW::SetVisible().