Commit 35261130 authored by Joachim Pouderoux's avatar Joachim Pouderoux

Fix double to unsigned char cast error on clang compiler.

Change-Id: I3979f3eeb2407a9924e57cf4b8540ea67693807e
parent 9f9b74b7
......@@ -130,7 +130,12 @@ bool vtkPlotBox::Paint(vtkContext2D *painter)
double rgb[4];
this->LookupTable->GetIndexedColor(index, rgb);
unsigned char crgba[4] =
{ rgb[0] * 255., rgb[1] * 255, rgb[2] * 255, 255 };
{
static_cast<unsigned char>(rgb[0] * 255.),
static_cast<unsigned char>(rgb[1] * 255.),
static_cast<unsigned char>(rgb[2] * 255.),
255
};
if (parent->GetSelectedColumn() == i)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment