From: sbh Date: Fri, 31 Oct 2014 11:12:43 +0000 (+0300) Subject: Crash on abort of any non-sketch operation. X-Git-Tag: V_0.5~50^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c7569f230373cbe5db483d5885b0a7932bb8dc6;p=modules%2Fshaper.git Crash on abort of any non-sketch operation. --- 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);