diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-01-08 21:59:39 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-01-08 21:59:39 -0300 |
commit | 0c2222188e7d9b9c2bcae8186c7a164b50000dc3 (patch) | |
tree | 439bfc16ee3a3fb04cdae00d0cf2f70047ed44f8 | |
parent | a6c2400b24cf172c71dd498f080d6ceaba4c1090 (diff) | |
parent | b8742051196a3fc74f74fb79bb900eec3c56f96f (diff) |
Merge pull request #945 from adolson/color-contrasted-fix
avoid potential stack overflow by recursive function call
-rw-r--r-- | core/color.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/color.cpp b/core/color.cpp index 1528db6aaa..3116c33a31 100644 --- a/core/color.cpp +++ b/core/color.cpp @@ -225,7 +225,7 @@ Color Color::inverted() const { Color Color::contrasted() const { Color c=*this; - c.contrasted(); + c.contrast(); return c; } |