From: apo Date: Thu, 13 Oct 2005 15:34:37 +0000 (+0000) Subject: Fix a bug X-Git-Tag: TG-D5-38-2003_D2005-20-12~166 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f5d3aa60c5cfe75b715072eb7c117fde6ea6b73;p=modules%2Fvisu.git Fix a bug --- 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);