summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-28 13:29:18 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-28 13:29:18 +0100
commitb53b9f3aa0603d4b4d4be23dc40ad25b4d082e20 (patch)
tree48a7cf63690e57e71ea672a52d7718962eac7b80
parente4042b767869c0438b61fdbfac1534cd4937da10 (diff)
Fix copy and paste error in previous commit.
-rw-r--r--src/rgb_xyz.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgb_xyz.cc b/src/rgb_xyz.cc
index 3d8f2451..23c99897 100644
--- a/src/rgb_xyz.cc
+++ b/src/rgb_xyz.cc
@@ -168,7 +168,7 @@ dcp::xyz_to_rgb (
};
int const height = xyz_image->size().height;
- int const width = xyz_image->size().height;
+ int const width = xyz_image->size().width;
for (int y = 0; y < height; ++y) {
uint16_t* rgb_line = reinterpret_cast<uint16_t*> (rgb + y * stride);