]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Crash on abort of any non-sketch operation.
authorsbh <sergey.belash@opencascade.com>
Fri, 31 Oct 2014 11:12:43 +0000 (14:12 +0300)
committersbh <sergey.belash@opencascade.com>
Fri, 31 Oct 2014 11:12:43 +0000 (14:12 +0300)
src/XGUI/XGUI_PropertyPanel.cpp

index 94712d811a10ed6f52df4a2fb43c0a8586d70d40..caa9b07a429195744b440e98611f47a90b5bbb53 100644 (file)
@@ -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);