From: mkr Date: Mon, 4 Jul 2005 11:46:54 +0000 (+0000) Subject: Fix for bug IPAL9369 : 3.0.0 (debianex: INSTALL2): CRASH after link deletion of the... X-Git-Tag: current25072005~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f1767115cfe00369c8ce6c5772397484c958db9;p=modules%2Fsuperv.git Fix for bug IPAL9369 : 3.0.0 (debianex: INSTALL2): CRASH after link deletion of the running dataflow. --- diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasLink.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasLink.cxx index 4855b18..955d3b8 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasLink.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasLink.cxx @@ -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;