From: mkr Date: Thu, 13 Nov 2008 13:35:22 +0000 (+0000) Subject: Fix for IPAL18716 : 4x regression in Scalar range. X-Git-Tag: V4_1_0_maintainance_20081117~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9087d0d5c9b7eaed9f8e475d60f803d62932c9b1;p=modules%2Fvisu.git Fix for IPAL18716 : 4x regression in Scalar range. --- diff --git a/src/VISUGUI/VisuGUI_Prs3dDlg.cxx b/src/VISUGUI/VisuGUI_Prs3dDlg.cxx index 56d0a148..6f665d94 100644 --- a/src/VISUGUI/VisuGUI_Prs3dDlg.cxx +++ b/src/VISUGUI/VisuGUI_Prs3dDlg.cxx @@ -981,7 +981,7 @@ void VisuGUI_ScalarBarPane::initFromPrsObject(VISU::ColoredPrs3d_i* thePrs) myModeLbl->setEnabled(isScalarMode); myModeCombo->setEnabled(isScalarMode); - setRange( myScalarMap->GetMin(), myScalarMap->GetMax(), myScalarMap->IsRangeFixed() ); + setRange( myScalarMap->GetSourceMin(), myScalarMap->GetSourceMax(), myScalarMap->IsRangeFixed() ); setScalarBarData( myScalarMap->GetNbColors(), myScalarMap->GetLabels() ); @@ -1332,7 +1332,7 @@ void VisuGUI_ScalarBarPane::changeRange( int ) MinEdit->setEnabled( false ); MaxEdit->setEnabled( false ); } else { - myScalarMap->SetRange(myScalarMap->GetMin(), myScalarMap->GetMax()); + myScalarMap->SetRange(myScalarMap->GetSourceMin(), myScalarMap->GetSourceMax()); MinEdit->setEnabled( true ); MaxEdit->setEnabled( true ); } @@ -1364,13 +1364,13 @@ void VisuGUI_ScalarBarPane::XYChanged( double ) */ void VisuGUI_ScalarBarPane::changeScalarMode( int theMode ) { + myScalarMap->SetScalarMode(theMode); + if ( RBFrange->isChecked() ) { - MinEdit->setText( QString::number( myScalarMap->GetComponentMin(theMode) ) ); - MaxEdit->setText( QString::number( myScalarMap->GetComponentMax(theMode) ) ); + MinEdit->setText( QString::number( myScalarMap->GetSourceMin() ) ); + MaxEdit->setText( QString::number( myScalarMap->GetSourceMax() ) ); } - myScalarMap->SetScalarMode(theMode); - updatePreview(); }