From: apo Date: Thu, 29 Nov 2007 16:37:46 +0000 (+0000) Subject: A workaround on the case when BOOST signal on the update VISU Colored presentation... X-Git-Tag: mergeto_BR_Dev_For_4_0_07-Dec-07~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=86fd544613a510adfd99edb28fc1aee6fd7af360;p=modules%2Fvisu.git 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) --- 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;