Skip to content

Commit

Permalink
Default value for chromaticities attribute constructor in exrstdattr (A…
Browse files Browse the repository at this point in the history
…cademySoftwareFoundation#1540)

Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm committed Sep 23, 2023
1 parent 4594b64 commit e93131b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/exrstdattr/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float> (strtod (argv[i + 1], 0));
Expand Down

0 comments on commit e93131b

Please sign in to comment.