Merge pull request #945 from adolson/color-contrasted-fix
avoid potential stack overflow by recursive function call
This commit is contained in:
commit
0c2222188e
|
@ -225,7 +225,7 @@ Color Color::inverted() const {
|
|||
Color Color::contrasted() const {
|
||||
|
||||
Color c=*this;
|
||||
c.contrasted();
|
||||
c.contrast();
|
||||
return c;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue