From 4b84c4331456f0ac9d9806af8d989e4b1bf29fec Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 26 Jan 2006 09:07:15 +0000 Subject: [PATCH] Fix for bug IPAL11360 : CRASH after node deletion. --- src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx b/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx index dff2f1e..6f03a18 100644 --- a/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx +++ b/src/SUPERVGUI/SUPERVGUI_CanvasNodePrs.cxx @@ -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) -- 2.39.2