From: apo Date: Mon, 23 Jul 2007 13:36:52 +0000 (+0000) Subject: To put functions calls in right order X-Git-Tag: T_MULTIPR_INDUS_2007-07-23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2006fe03f7b7072618a9b1b2955065f46b6424ad;p=modules%2Fvisu.git To put functions calls in right order --- diff --git a/src/VISU_I/VISU_ColoredPrs3d_i.cc b/src/VISU_I/VISU_ColoredPrs3d_i.cc index 488db156..54cd8f03 100644 --- a/src/VISU_I/VISU_ColoredPrs3d_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3d_i.cc @@ -1133,13 +1133,12 @@ VISU::ColoredPrs3d_i // Scalar Range int aRangeType = aResourceMgr->integerValue("VISU" , "scalar_range_type", 0); - UseFixedRange(aRangeType == 1); - - if(IsRangeFixed()){ + if(aRangeType == 1){ float aMin = aResourceMgr->doubleValue("VISU", "scalar_range_min", 0); float aMax = aResourceMgr->doubleValue("VISU", "scalar_range_max", 0); SetRange(aMin, aMax); } + UseFixedRange(aRangeType == 1); int aNumberOfColors = aResourceMgr->integerValue( "VISU", "scalar_bar_num_colors", 64 ); SetNbColors(aNumberOfColors);