From 8bcc340aaad25d003da8cf481f82b8c94182b865 Mon Sep 17 00:00:00 2001 From: Cary Phillips Date: Thu, 31 Aug 2023 11:03:21 -0700 Subject: [PATCH] Default value for chromaticities attribute constructor in exrstdattr Signed-off-by: Cary Phillips --- src/bin/exrstdattr/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/exrstdattr/main.cpp b/src/bin/exrstdattr/main.cpp index 548e00f794..4101993916 100644 --- a/src/bin/exrstdattr/main.cpp +++ b/src/bin/exrstdattr/main.cpp @@ -485,7 +485,7 @@ getChromaticities ( if (i > argc - 9) throw invalid_argument("Expected 8 chromaticity values"); - ChromaticitiesAttribute* a = new ChromaticitiesAttribute; + ChromaticitiesAttribute* a = new ChromaticitiesAttribute(Chromaticities()); attrs.push_back (SetAttr (attrName, part, a)); a->value ().red.x = static_cast (strtod (argv[i + 1], 0));