Skip to content

Commit

Permalink
Update svglayoutstate.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage authored Sep 11, 2024
1 parent 3ac1222 commit bc3db9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/svglayoutstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static Color parseColor(std::string_view input, const SVGLayoutState* state, con
auto color = parseColorValue(input, state);
if(!color || !input.empty())
return defaultValue;
return color.value();
return *color;
}

static Color parseColorOrNone(std::string_view input, const SVGLayoutState* state, const Color& defaultValue)
Expand Down

0 comments on commit bc3db9f

Please sign in to comment.