X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolProfile.cxx;h=baf34f86bc35daa0e393d35388bd50633aa11ba8;hb=aa136d28e83a9b149621689f4f2e102d322c9cef;hp=7ef23101a2ab9d5d0263caad118f0c09a6120e73;hpb=ec05c5b4385b34858d6ddd47b91ed1d78dc9615c;p=clitk.git diff --git a/vv/vvToolProfile.cxx b/vv/vvToolProfile.cxx index 7ef2310..baf34f8 100644 --- a/vv/vvToolProfile.cxx +++ b/vv/vvToolProfile.cxx @@ -615,7 +615,11 @@ void vvToolProfile::InitializeLine() unsigned char red[3] = { 255, 0, 0 }; vtkSmartPointer colors = vtkSmartPointer::New(); colors->SetNumberOfComponents(3); +#if VTK_MAJOR_VERSION >= 8 || (VTK_MAJOR_VERSION == 7 && VTK_MINOR_VERSION >= 1) + colors->InsertNextTypedTuple(red); +#else colors->InsertNextTupleValue(red); +#endif mLinesPolyData->GetCellData()->SetScalars(colors); for(int i=0;iGetNumberOfSlicers(); i++) {