Commit 331b00b2 authored by Ken Martin's avatar Ken Martin
Browse files

bug fix for image iterators

parent 1a198d23
......@@ -45,11 +45,12 @@ vtkImageIterator<DType>::vtkImageIterator(vtkImageData *id, int *ext)
template <class DType>
void vtkImageIterator<DType>::NextSpan()
{
this->Pointer = this->Pointer + this->Increments[1];
this->Pointer += this->Increments[1];
this->SpanEndPointer += this->Increments[1];
if (this->Pointer >= this->SliceEndPointer)
{
this->Pointer = this->Pointer + this->ContinuousIncrements[2];
this->Pointer += this->ContinuousIncrements[2];
this->SpanEndPointer += this->ContinuousIncrements[2];
this->SliceEndPointer += this->Increments[2];
}
}
......
......@@ -43,11 +43,12 @@ vtkImageProgressIterator<DType>::vtkImageProgressIterator(vtkImageData *imgd,
template <class DType>
void vtkImageProgressIterator<DType>::NextSpan()
{
this->Pointer = this->Pointer + this->Increments[1];
this->Pointer += this->Increments[1];
this->SpanEndPointer += this->Increments[1];
if (this->Pointer >= this->SliceEndPointer)
{
this->Pointer = this->Pointer + this->ContinuousIncrements[2];
this->Pointer += this->ContinuousIncrements[2];
this->SpanEndPointer += this->ContinuousIncrements[2];
this->SliceEndPointer += this->Increments[2];
}
if (this->ID)
......
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