From 7049aad23e0d475cfc2da98e5d06302583e26e0d 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 12c85bdd70..51d874528b 100644 --- a/src/libOpenImageIO/imagebuf.cpp +++ b/src/libOpenImageIO/imagebuf.cpp @@ -3167,7 +3167,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; }