Skip to content

Commit

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

Signed-off-by: Cary Phillips <cary@ilm.com>
  • Loading branch information
cary-ilm authored Sep 12, 2023
1 parent 3c6560a commit dfb1b9a
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 dfb1b9a

Please sign in to comment.