From ec1bd9352db84151323ed3b7d7da192daf9bf6f6 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Thu, 19 Jul 2012 15:37:23 -0700 Subject: [PATCH] Fix typo that led to bug in get_pixel_channels (from a recent change) --- 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 72b8a35ec0..a948833b8f 100644 --- a/src/libOpenImageIO/imagebuf.cpp +++ b/src/libOpenImageIO/imagebuf.cpp @@ -967,7 +967,7 @@ ImageBuf::get_pixel_channels (int xbegin, int xend, int ybegin, int yend, xbegin, xend, ybegin, yend, zbegin, zend, \ chbegin, chend, (CType::type *)result); - switch (spec().format.basetype) { + switch (format.basetype) { TYPECASE (TypeDesc::UINT8); TYPECASE (TypeDesc::INT8); TYPECASE (TypeDesc::UINT16);