diff options
| author | Ralf Stephan <ralf@ark.in-berlin.de> | 2006-02-15 19:04:29 +0000 |
|---|---|---|
| committer | rwst <rwst@users.sourceforge.net> | 2006-02-15 19:04:29 +0000 |
| commit | 7b0114087822b9f011d740f1279d1d9ed983a88c (patch) | |
| tree | 159bd147d5a3b2daa65b327dd3f5d0b2e764eeb9 /src/color.cpp | |
| parent | fix 1432089: stroke is not drawn not only when it's not set but also when it'... (diff) | |
| download | inkscape-7b0114087822b9f011d740f1279d1d9ed983a88c.tar.gz inkscape-7b0114087822b9f011d740f1279d1d9ed983a88c.zip | |
bulk trailing spaces removal. consistency through MD5 of binary
(bzr r149)
Diffstat (limited to 'src/color.cpp')
| -rw-r--r-- | src/color.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/color.cpp b/src/color.cpp index c968d334f..77fca3b4b 100644 --- a/src/color.cpp +++ b/src/color.cpp @@ -25,7 +25,7 @@ static SPColorSpace const RGB = {"RGB"}; static SPColorSpace const CMYK = {"CMYK"}; /** - * Returns one of three values depending on if color is valid and if it + * Returns one of three values depending on if color is valid and if it * has a valid color space. Likely redundant as soon as this is C++. */ SPColorSpaceClass @@ -85,8 +85,8 @@ sp_color_is_equal (SPColor const *c0, SPColor const *c1) } /** - * Returns TRUE if no RGB value differs epsilon or more in both colors, - * with CMYK aditionally comparing opacity, or if c0 or c1 is NULL. + * Returns TRUE if no RGB value differs epsilon or more in both colors, + * with CMYK aditionally comparing opacity, or if c0 or c1 is NULL. * \note Do we want the latter? */ gboolean @@ -128,7 +128,7 @@ sp_color_set_rgb_float(SPColor *color, float r, float g, float b) /** * Converts 32bit value to RGB floats and sets color. - * \pre color != NULL + * \pre color != NULL */ void sp_color_set_rgb_rgba32(SPColor *color, guint32 value) @@ -349,9 +349,9 @@ sp_color_rgb_to_hsl_floatv (float *hsl, float r, float g, float b) hsl[0] = 0; hsl[1] = 0; } else { - if (hsl[2] <= 0.5) + if (hsl[2] <= 0.5) hsl[1] = delta / (max + min); - else + else hsl[1] = delta / (2 - max - min); if (r == max) hsl[0] = (g - b) / delta; |
