From 7dbf6452671352c61f0176f2492814251338410e Mon Sep 17 00:00:00 2001 From: rwst Date: Sun, 21 May 2006 09:03:45 +0000 Subject: [PATCH] handle unhandled case in sp_color_rgb_to hsv_floatv(), removes assert warnings when setting color via wheel --- src/color.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } /** -- 2.30.2