summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-11 13:52:39 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-11 13:52:39 +0100
commit07931370047752c51c54f91a77cef13320de267c (patch)
tree02728276b4551769d446a5ba92c0db9daf3df5fa /src
parente4d623e3cf92ba2f35094841d2c6015a43c29e17 (diff)
Fix possible assert failure.
Diffstat (limited to 'src')
-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 08a4e838..a52d4f70 100644
--- a/src/rgb_xyz.cc
+++ b/src/rgb_xyz.cc
@@ -295,7 +295,7 @@ dcp::rgb_to_xyz (
}
}
- if (clamped) {
+ if (clamped && note) {
note.get() (DCP_NOTE, String::compose ("%1 XYZ value(s) clamped", clamped));
}