Browse Source

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

avoid potential stack overflow by recursive function call
Juan Linietsky 10 năm trước cách đây
mục cha
commit
0c2222188e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      core/color.cpp

+ 1 - 1
core/color.cpp

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