summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 */