Skip to content

Commit

Permalink
Merge pull request sammycage#88 from fdwr/patch-1
Browse files Browse the repository at this point in the history
Set stop::offset default/initial value = 0
  • Loading branch information
Nwutobo Samuel Ugochukwu authored May 19, 2022
2 parents a05bbe8 + b201db8 commit ef111f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/stopelement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ StopElement::StopElement()
double StopElement::offset() const
{
auto& value = get(PropertyId::Offset);
return Parser::parseNumberPercentage(value, 1.0);
return Parser::parseNumberPercentage(value, 0.0);
}

Color StopElement::stopColorWithOpacity() const
Expand Down

0 comments on commit ef111f9

Please sign in to comment.