From 9087d0d5c9b7eaed9f8e475d60f803d62932c9b1 Mon Sep 17 00:00:00 2001 From: mkr Date: Thu, 13 Nov 2008 13:35:22 +0000 Subject: [PATCH] Fix for IPAL18716 : 4x regression in Scalar range. --- src/VISUGUI/VisuGUI_Prs3dDlg.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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(); } -- 2.39.2