From: rwst Date: Sun, 21 May 2006 09:03:45 +0000 (+0000) Subject: handle unhandled case in sp_color_rgb_to hsv_floatv(), removes assert warnings when... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7dbf6452671352c61f0176f2492814251338410e;p=inkscape.git handle unhandled case in sp_color_rgb_to hsv_floatv(), removes assert warnings when setting color via wheel --- diff --git a/src/color.cpp b/src/color.cpp index 77fca3b4b..4c64d84cd 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -290,6 +290,8 @@ sp_color_rgb_to_hsv_floatv (float *hsv, float r, float g, float b) if (hsv[0] < 0) hsv[0] += 1.0; } + else + hsv[0] = 0.0; } /**