]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug IPAL9369 : 3.0.0 (debianex: INSTALL2): CRASH after link deletion of the...
authormkr <mkr@opencascade.com>
Mon, 4 Jul 2005 11:46:54 +0000 (11:46 +0000)
committermkr <mkr@opencascade.com>
Mon, 4 Jul 2005 11:46:54 +0000 (11:46 +0000)
src/SUPERVGUI/SUPERVGUI_CanvasLink.cxx

index 4855b18adae231260f802b0680c3b23c39977385..955d3b89698ce8f31daf577d3e557866e4610c7a 100644 (file)
@@ -214,6 +214,10 @@ void SUPERVGUI_CanvasLink::setColor(const QColor& theColor)
 }
 
 void SUPERVGUI_CanvasLink::remove() {
+  // IPAL9369 : check the dataflow readiness to modify
+  if ( !myMain->ReadyToModify() ) // null dataflow or executing, ..
+    return;
+
   myMain->Editing(); // PAL6170: GUI->Engine: setting "Editing" flag 
 
   QString aValue;