From 8a09888f1957cd7598beb8900f1adfcbf845ed01 Mon Sep 17 00:00:00 2001 From: Anton Dukhovnikov Date: Fri, 2 Aug 2024 10:31:31 +1200 Subject: [PATCH] fix(IB): copy/paste error in the ImageBuf iterator copy constructor (#4365) Fixes a simple copy/paste error in a copy constructor where the y coordinate gets initialised twice instead of y and z. Signed-off-by: Anton Dukhovnikov --- src/libOpenImageIO/imagebuf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libOpenImageIO/imagebuf.cpp b/src/libOpenImageIO/imagebuf.cpp index a31fd320c2..6781d7ef2a 100644 --- a/src/libOpenImageIO/imagebuf.cpp +++ b/src/libOpenImageIO/imagebuf.cpp @@ -3129,7 +3129,7 @@ ImageBuf::IteratorBase::operator=(const IteratorBase& i) m_rng_zend = i.m_rng_zend; m_x = i.m_x; m_y = i.m_y; - m_y = i.m_y; + m_z = i.m_z; return *this; }