summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-01-08 21:59:39 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-01-08 21:59:39 -0300
commit0c2222188e7d9b9c2bcae8186c7a164b50000dc3 (patch)
tree439bfc16ee3a3fb04cdae00d0cf2f70047ed44f8
parenta6c2400b24cf172c71dd498f080d6ceaba4c1090 (diff)
parentb8742051196a3fc74f74fb79bb900eec3c56f96f (diff)
Merge pull request #945 from adolson/color-contrasted-fix
avoid potential stack overflow by recursive function call
-rw-r--r--core/color.cpp2
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;
}