From 5f5d3aa60c5cfe75b715072eb7c117fde6ea6b73 Mon Sep 17 00:00:00 2001 From: apo Date: Thu, 13 Oct 2005 15:34:37 +0000 Subject: [PATCH] Fix a bug --- src/PIPELINE/VISU_Extractor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIPELINE/VISU_Extractor.cxx b/src/PIPELINE/VISU_Extractor.cxx index fa36cd8e..6b182da2 100644 --- a/src/PIPELINE/VISU_Extractor.cxx +++ b/src/PIPELINE/VISU_Extractor.cxx @@ -66,7 +66,7 @@ execute(int theNbElems, vtkDataArray* aFieldArray = theInputData->GetArray("VISU_FIELD"); if(vtkFloatArray *aFloatArray = dynamic_cast(aFieldArray)){ int aNbComp = aFloatArray->GetNumberOfComponents(); - std::vector anArray(aNbComp); + std::vector anArray(aNbComp < 3? 3: aNbComp); // vtkFloatArray *aScalars = vtkFloatArray::New(); aScalars->SetNumberOfTuples(theNbElems); -- 2.39.2