summaryrefslogtreecommitdiff
path: root/src/colour_conversion.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-04-22 14:01:19 +0100
committerCarl Hetherington <cth@carlh.net>2015-04-22 14:01:19 +0100
commit7ff5a08960fc0d8ab10ce9b0d79e677000cd07e0 (patch)
tree4f1305e4410621f32d0ff5b31360ff64191eb698 /src/colour_conversion.cc
parent86bfdeb77f55b379302a65b22f57fc0583ec6b3c (diff)
Fix crash in previous.
Diffstat (limited to 'src/colour_conversion.cc')
-rw-r--r--src/colour_conversion.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/colour_conversion.cc b/src/colour_conversion.cc
index a5f77f0a..59aadf1a 100644
--- a/src/colour_conversion.cc
+++ b/src/colour_conversion.cc
@@ -168,7 +168,7 @@ ColourConversion::xyz_to_rgb () const
DCP_ASSERT (r == 0);
/* create identity matrix of inverse */
- boost::numeric::ublas::matrix<double> xyz_to_rgb;
+ boost::numeric::ublas::matrix<double> xyz_to_rgb (3, 3);
xyz_to_rgb.assign (boost::numeric::ublas::identity_matrix<double> (A.size1 ()));
/* backsubstitute to get the inverse */