]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug IPAL11360 : CRASH after node deletion.
authormkr <mkr@opencascade.com>
Thu, 26 Jan 2006 09:07:15 +0000 (09:07 +0000)
committermkr <mkr@opencascade.com>
Thu, 26 Jan 2006 09:07:15 +0000 (09:07 +0000)
src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx

index dff2f1eb82161a66bb5ef83961c0e92e79d6cdf7..6f03a189458a5976921bb8d9cd096999c77a616f 100644 (file)
@@ -11,6 +11,7 @@
 #include "SUPERVGUI_CanvasPort.h"
 #include "SUPERVGUI_Canvas.h"
 #include "SUPERVGUI_CanvasCellNodePrs.h"
+#include "SUPERVGUI_Main.h"
 
 #include "SUIT_ResourceMgr.h"
 
@@ -560,7 +561,8 @@ void SUPERVGUI_CanvasNodePrs::draw(QPainter& thePainter)
 {
   thePainter.setPen(pen());
   thePainter.setBrush(nodeColor());
-  drawShape(thePainter);
+  if ( !CORBA::is_nil( myNode->getMain()->getDataflow()->Node( myNode->name() ) ) ) // mkr : IPAL11360
+    drawShape(thePainter);
 }
 
 void SUPERVGUI_CanvasNodePrs::drawShape(QPainter& thePainter)