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