From 404351065ed3afb4d12b88357dbd9cd87c7852bb Mon Sep 17 00:00:00 2001 From: wandererfan Date: Sun, 10 Sep 2023 08:50:29 -0400 Subject: [PATCH] [TD]fix fail on section delete - fails in onChange during delete due to null BaseView --- src/Mod/TechDraw/App/DrawViewSection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/App/DrawViewSection.cpp b/src/Mod/TechDraw/App/DrawViewSection.cpp index 7e92ee8ab3..f29486b417 100644 --- a/src/Mod/TechDraw/App/DrawViewSection.cpp +++ b/src/Mod/TechDraw/App/DrawViewSection.cpp @@ -319,7 +319,7 @@ void DrawViewSection::onChanged(const App::Property* prop) else if (prop == &BaseView) { // if the BaseView is a Section, then the option of using UsePreviousCut is // valid. - if (BaseView.getValue()->getTypeId().isDerivedFrom( + if (BaseView.getValue() && BaseView.getValue()->getTypeId().isDerivedFrom( TechDraw::DrawViewSection::getClassTypeId())) { UsePreviousCut.setStatus(App::Property::ReadOnly, false); }