diff --git a/xs/src/slic3r/GUI/GUI.cpp b/xs/src/slic3r/GUI/GUI.cpp index 9109e8b5c..9450f44ae 100644 --- a/xs/src/slic3r/GUI/GUI.cpp +++ b/xs/src/slic3r/GUI/GUI.cpp @@ -545,7 +545,7 @@ unsigned get_colour_approx_luma(const wxColour &colour) double g = colour.Green(); double b = colour.Blue(); - std::round(std::sqrt( + return std::round(std::sqrt( r * r * .241 + g * g * .691 + b * b * .068