From: apo Date: Thu, 13 Dec 2007 08:36:32 +0000 (+0000) Subject: Fix for Bug IPAL18306 X-Git-Tag: V4_1_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7bea25eed4381533a09a27a65747efa58410ea5d;p=modules%2Fvisu.git Fix for Bug IPAL18306 4.x: "ApplyProperties()" raises "omniORB.CORBA.COMM_FAILURE". --- diff --git a/src/VISU_I/VISU_ColoredPrs3d_i.cc b/src/VISU_I/VISU_ColoredPrs3d_i.cc index 664b8162..4eb39df8 100644 --- a/src/VISU_I/VISU_ColoredPrs3d_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3d_i.cc @@ -518,7 +518,9 @@ VISU::ColoredPrs3d_i ::SetMinMaxController( VISU::ColoredPrs3d_i* theOrigin ) { VISU::PMinMaxController aController = theOrigin->GetMinMaxController(); - aController->UpdateReference( theOrigin, this ); + + if ( aController ) + aController->UpdateReference( theOrigin, this ); SetMinMaxController( aController ); }