From: ouv Date: Fri, 27 Apr 2012 09:19:46 +0000 (+0000) Subject: IPAL22925: TC6.5.0: scalar bar is built for presentation without Magnitude coloring X-Git-Tag: TRIPOLI_323 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=581ce05fa361c212fc79d0890f58f6a7aead00e0;p=modules%2Fvisu.git IPAL22925: TC6.5.0: scalar bar is built for presentation without Magnitude coloring --- diff --git a/src/VISU_I/VISU_MonoColorPrs_i.cc b/src/VISU_I/VISU_MonoColorPrs_i.cc index e3aaeaae..8fdf4101 100644 --- a/src/VISU_I/VISU_MonoColorPrs_i.cc +++ b/src/VISU_I/VISU_MonoColorPrs_i.cc @@ -170,14 +170,15 @@ void VISU::MonoColorPrs_i::UpdateActor(VISU_ActorBase* theActor) { if(VISU_ScalarMapAct* anActor = dynamic_cast(theActor)){ if(IsColored()){ - anActor->SetBarVisibility(true); GetPipeLine()->GetMapper()->SetScalarVisibility(1); }else{ - anActor->SetBarVisibility(false); GetPipeLine()->GetMapper()->SetScalarVisibility(0); anActor->GetProperty()->SetColor(myColor.R,myColor.G,myColor.B); } TSuperClass::UpdateActor(theActor); + + // this method should be called after TSuperClass::UpdateActor() + anActor->SetBarVisibility( IsBarVisible() && IsColored() ); } }