From 4c7569f230373cbe5db483d5885b0a7932bb8dc6 Mon Sep 17 00:00:00 2001 From: sbh Date: Fri, 31 Oct 2014 14:12:43 +0300 Subject: [PATCH] Crash on abort of any non-sketch operation. --- src/XGUI/XGUI_PropertyPanel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/XGUI/XGUI_PropertyPanel.cpp b/src/XGUI/XGUI_PropertyPanel.cpp index 94712d811..caa9b07a4 100644 --- a/src/XGUI/XGUI_PropertyPanel.cpp +++ b/src/XGUI/XGUI_PropertyPanel.cpp @@ -124,6 +124,9 @@ QWidget* XGUI_PropertyPanel::contentWidget() void XGUI_PropertyPanel::updateContentWidget(FeaturePtr theFeature) { + // Invalid feature case on abort of the operation + if(!theFeature->data()) + return; foreach(ModuleBase_ModelWidget* eachWidget, myWidgets) { eachWidget->setFeature(theFeature); -- 2.39.2