diff --git a/visualization/src/pcl_visualizer.cpp b/visualization/src/pcl_visualizer.cpp index b5fabde110f..7c84b7543ee 100644 --- a/visualization/src/pcl_visualizer.cpp +++ b/visualization/src/pcl_visualizer.cpp @@ -1492,7 +1492,7 @@ pcl::visualization::PCLVisualizer::setPointCloudRenderingProperties ( actor->GetMapper ()->ScalarVisibilityOn (); actor->GetMapper ()->SetScalarRange (range[0], range[1]); vtkSmartPointer table; - if (!pcl::visualization::getColormapLUT (static_cast(value), table)) + if (!pcl::visualization::getColormapLUT (static_cast(static_cast(value)), table)) break; table->SetRange (range[0], range[1]); actor->GetMapper ()->SetLookupTable (table); @@ -1738,7 +1738,7 @@ pcl::visualization::PCLVisualizer::setShapeRenderingProperties ( actor->GetMapper ()->ScalarVisibilityOn (); actor->GetMapper ()->SetScalarRange (range[0], range[1]); vtkSmartPointer table = vtkSmartPointer::New (); - getColormapLUT (static_cast(value), table); + getColormapLUT (static_cast(static_cast(value)), table); table->SetRange (range[0], range[1]); actor->GetMapper ()->SetLookupTable (table); style_->updateLookUpTableDisplay (false);