Commit b47ce8ef authored by Luca Barbato's avatar Luca Barbato
Browse files

Unbreak the row iterators

The remaning field was not updated
parent 1b4d72a4
......@@ -408,6 +408,7 @@ impl<'a, T: Pixel> Iterator for RowsIter<'a, T> {
self.data = self.data.add(self.stride);
slice::from_raw_parts(ptr, self.width)
};
self.remaining -= 1;
Some(row)
} else {
None
......@@ -431,6 +432,7 @@ impl<'a, T: Pixel> Iterator for RowsIterMut<'a, T> {
self.data = self.data.add(self.stride);
slice::from_raw_parts_mut(ptr, self.width)
};
self.remaining -= 1;
Some(row)
} else {
None
......
Markdown is supported
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