From 86fd544613a510adfd99edb28fc1aee6fd7af360 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 29 Nov 2007 16:37:46 +0000 Subject: [PATCH] A workaround on the case when BOOST signal on the update VISU Colored presentation from the VISU Result is emitted to the temporal one (which can be already destroyed) (Surely, it is pity, but it should be up to BOOST siganls library do disconnect its obrserver, when they are destroyed) --- src/VISU_I/VISU_ColoredPrs3d_i.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/VISU_I/VISU_ColoredPrs3d_i.cc b/src/VISU_I/VISU_ColoredPrs3d_i.cc index 97703c66..043668b8 100644 --- a/src/VISU_I/VISU_ColoredPrs3d_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3d_i.cc @@ -271,7 +271,8 @@ VISU::ColoredPrs3d_i if(!IsRangeFixed() && theReInit) SetSourceRange(); - GetCResult()->ConnectObserver(this, myResultConnection); + if(GetPublishInStudyMode() != EDoNotPublish) + GetCResult()->ConnectObserver(this, myResultConnection); myPreviousEntity = myEntity; myPreviousFieldName = myFieldName; -- 2.39.2