]> Creatis software - clitk.git/blobdiff - vv/vvToolProfile.cxx
Remove warning with VTK7.1
[clitk.git] / vv / vvToolProfile.cxx
index 7ef23101a2ab9d5d0263caad118f0c09a6120e73..c6b44b6f15792d861a13014759b8a9d0483a09ed 100644 (file)
@@ -615,7 +615,11 @@ void vvToolProfile::InitializeLine()
       unsigned char red[3] = { 255, 0, 0 };
       vtkSmartPointer<vtkUnsignedCharArray> colors = vtkSmartPointer<vtkUnsignedCharArray>::New();
       colors->SetNumberOfComponents(3);
+#if VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+      colors->InsertNextTypedTuple(red);
+#else
       colors->InsertNextTupleValue(red);
+#endif
       mLinesPolyData->GetCellData()->SetScalars(colors);
       
       for(int i=0;i<mCurrentSlicerManager->GetNumberOfSlicers(); i++) {