From: apo Date: Mon, 21 May 2007 06:13:21 +0000 (+0000) Subject: To prevent changing of scalar bar title when there is no necessity X-Git-Tag: mergeto_BR_Dev_For_4_0_21May07~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9002f53942de7f415bf5416fd1b8c9901812a35;p=modules%2Fvisu.git To prevent changing of scalar bar title when there is no necessity --- diff --git a/src/VISU_I/VISU_ColoredPrs3d_i.cc b/src/VISU_I/VISU_ColoredPrs3d_i.cc index a3e8e67c..3bbed30d 100644 --- a/src/VISU_I/VISU_ColoredPrs3d_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3d_i.cc @@ -170,7 +170,8 @@ VISU::ColoredPrs3d_i } // To update title according to the new input - SetTitle(GetCFieldName().c_str()); + if(theReInit) + SetTitle(GetCFieldName().c_str()); return anIsCreatNew; }