Commit 9df6316c authored by Mathieu Malaterre's avatar Mathieu Malaterre
Browse files

BUG: Fix Bug #3538 - a code err. Thanks to wwyang for patch. The patch was...

BUG: Fix Bug #3538 - a code err. Thanks to wwyang for patch. The patch was already applied to VTK CVS, but not the VTK5 branch.
parent 72b23ad8
......@@ -17,7 +17,7 @@
#include "vtkObjectFactory.h"
#include "vtkIdList.h"
vtkCxxRevisionMacro(vtkFieldData, "1.2");
vtkCxxRevisionMacro(vtkFieldData, "1.2.6.1");
vtkStandardNewMacro(vtkFieldData);
//----------------------------------------------------------------------------
......@@ -471,7 +471,7 @@ int vtkFieldData::GetArrayContainingComponent(int i, int& arrayComp)
if ( this->Data[j] != NULL )
{
numComp = this->Data[j]->GetNumberOfComponents();
if ( j < (numComp + count) )
if ( i < (numComp + count) )
{
arrayComp = i - count;
return j;
......
Supports Markdown
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