Merge pull request #945 from adolson/color-contrasted-fix

avoid potential stack overflow by recursive function call
This commit is contained in:
Juan Linietsky 2015-01-08 21:59:39 -03:00
commit 0c2222188e

View file

@ -225,7 +225,7 @@ Color Color::inverted() const {
Color Color::contrasted() const {
Color c=*this;
c.contrasted();
c.contrast();
return c;
}