From: mkr Date: Thu, 13 Nov 2008 14:29:01 +0000 (+0000) Subject: Fix for IPAL18716 : 4x regression in Scalar range. X-Git-Tag: V5_1_0rc1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=97a8cfef8a25228ccbd52be0846d0439f9b90c1a;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 9554ce2f..561c5e87 100644 --- a/src/VISUGUI/VisuGUI_Prs3dDlg.cxx +++ b/src/VISUGUI/VisuGUI_Prs3dDlg.cxx @@ -1408,7 +1408,7 @@ void VisuGUI_ScalarBarPane::onFieldRange( bool isOn ) void VisuGUI_ScalarBarPane::onImposedRange( bool isOn ) { if (isOn) { - myScalarMap->SetRange( myScalarMap->GetMin(), myScalarMap->GetMax() ); + myScalarMap->SetRange( myScalarMap->GetSourceMin(), myScalarMap->GetSourceMax() ); MinEdit->setEnabled( true ); MaxEdit->setEnabled( true ); changeScalarMode(myModeCombo->currentIndex()); @@ -1428,7 +1428,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 ); } @@ -1460,13 +1460,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(); }