summaryrefslogtreecommitdiff
path: root/basegfx/source/color
diff options
context:
space:
mode:
authorthb <thb@openoffice.org>2010-02-19 11:14:19 +0100
committerthb <thb@openoffice.org>2010-02-19 11:14:19 +0100
commit7ffd813fd3f0c4ec1e6b6f168acf94a6c3246a58 (patch)
tree1a29e816428fd3e2d808cc0f993a1fc9e981074b /basegfx/source/color
parentb76532e1fbc6ac8d421308cac5a1d4fb239047db (diff)
Fix rgb2hsl miscalculation + add according test case
* the fourth quadrant hue calculation had a typo for the rgb2hsl function. fixed now. * added testcase that break before, and works now
Diffstat (limited to 'basegfx/source/color')
-rw-r--r--basegfx/source/color/bcolortools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basegfx/source/color/bcolortools.cxx b/basegfx/source/color/bcolortools.cxx
index 1c7d2b222fff..960ccfad4d67 100644
--- a/basegfx/source/color/bcolortools.cxx
+++ b/basegfx/source/color/bcolortools.cxx
@@ -65,7 +65,7 @@ namespace basegfx { namespace tools
else if( g == maxVal )
h = 2.0 + (b - r)/d;
else
- h = 4.0 + (r - h)/d;
+ h = 4.0 + (r - g)/d;
h *= 60.0;