]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
A workaround on the case when BOOST signal on the update VISU Colored presentation...
authorapo <apo@opencascade.com>
Thu, 29 Nov 2007 16:37:46 +0000 (16:37 +0000)
committerapo <apo@opencascade.com>
Thu, 29 Nov 2007 16:37:46 +0000 (16:37 +0000)
(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

index 97703c66255ac2d54ee015207a0bce75df5b0e5e..043668b826d9260cae1a6a256d836f6200e1d3f8 100644 (file)
@@ -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;