From: dmv Date: Thu, 26 Jun 2008 08:53:12 +0000 (+0000) Subject: Bug IPAL20026 4.x: "Scalar Bar Properties" values of the table presentation aren... X-Git-Tag: V4_1_0_maintainance_20080627 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0762fb709e96b973eb797f9b9b9d044d73ec7a6d;p=modules%2Fvisu.git Bug IPAL20026 4.x: "Scalar Bar Properties" values of the table presentation aren't saved after second edition. Bug IPAL20027 4.x: "Preferences" aren't taken into account for the table presentation. --- diff --git a/src/VISU_I/VISU_PointMap3d_i.cc b/src/VISU_I/VISU_PointMap3d_i.cc index 17fe55ec..95b0766c 100644 --- a/src/VISU_I/VISU_PointMap3d_i.cc +++ b/src/VISU_I/VISU_PointMap3d_i.cc @@ -197,6 +197,13 @@ VISU::Storable* VISU::PointMap3d_i::Create() bool isUnits = aResourceMgr->booleanValue( "VISU", "scalar_bar_display_units", true ); SetUnitsVisible(isUnits); + SetSourceRange(); + + if( IsPositiveTable() && aResourceMgr->booleanValue("VISU", "scalar_bar_logarithmic", false) ) + SetScaling(VISU::LOGARITHMIC); + else + SetScaling(VISU::LINEAR); + QString aLabelsFormat = aResourceMgr->stringValue( "VISU", "scalar_bar_label_format", "%-#6.3g" ); const char *lf=aLabelsFormat.latin1(); SetLabelsFormat(lf); @@ -751,8 +758,6 @@ CORBA::Double VISU::PointMap3d_i::GetSourceMin() vtkFloatingPointType aRange[2]; GetSpecificPL()->GetSourceRange(aRange); return aRange[0]; - - UseFixedRange(false); } CORBA::Double VISU::PointMap3d_i::GetSourceMax() @@ -767,6 +772,8 @@ void VISU::PointMap3d_i::SetSourceRange() GetSpecificPL()->SetSourceRange(); ProcessVoidEvent(new TVoidMemFunEvent (GetSpecificPL(), &VISU_DeformedGridPL::SetSourceRange)); + + UseFixedRange(false); } CORBA::Boolean VISU::PointMap3d_i::IsRangeFixed()