From 2006fe03f7b7072618a9b1b2955065f46b6424ad Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 23 Jul 2007 13:36:52 +0000 Subject: [PATCH] To put functions calls in right order --- src/VISU_I/VISU_ColoredPrs3d_i.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); -- 2.39.2