Salome HOME
Debug PAL8101: SMesh: Controls - Scalar bar properties works wrong.
[modules/smesh.git] / src / OBJECT / SMESH_DeviceActor.cxx
index 28670e6bef7302f017887740615bed1380d270df..0d3347ecbb4bbf67eb115cf4ee8c49152866044d 100644 (file)
@@ -284,6 +284,7 @@ void SMESH_DeviceActor::SetControlMode(SMESH::Controls::FunctorPtr theFunctor,
     aScalars->Delete();
        
     theLookupTable->SetRange(aScalars->GetRange());
+    theLookupTable->SetNumberOfTableValues(theScalarBarActor->GetMaximumNumberOfColors());
     theLookupTable->Build();
     
     myMergeFilter->SetScalars(aDataSet);