diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2014-02-28 18:36:08 +0000 |
|---|---|---|
| committer | Jabiertxof <jtx@jtx.marker.es> | 2014-02-28 18:36:08 +0000 |
| commit | 5974e91ff387b44b30434d3a2ede5f1ea6791a7c (patch) | |
| tree | 93c062f10f51d6ea670d716d49b5c5883181e055 /src/ui/widget/selected-style.cpp | |
| parent | update to trunk (diff) | |
| parent | Spray tool: (diff) | |
| download | inkscape-5974e91ff387b44b30434d3a2ede5f1ea6791a7c.tar.gz inkscape-5974e91ff387b44b30434d3a2ede5f1ea6791a7c.zip | |
update to trunk
(bzr r11950.1.259)
Diffstat (limited to 'src/ui/widget/selected-style.cpp')
| -rw-r--r-- | src/ui/widget/selected-style.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/widget/selected-style.cpp b/src/ui/widget/selected-style.cpp index d29554c41..042a6614e 100644 --- a/src/ui/widget/selected-style.cpp +++ b/src/ui/widget/selected-style.cpp @@ -1267,6 +1267,11 @@ RotateableSwatch::color_adjust(float *hsla, double by, guint32 cc, guint modifie } else if (modifier == 3) { // alpha double old = hsla[3]; hsla[3] += by/2; + if (hsla[3] < 0) { + hsla[3] = 0; + } else if (hsla[3] > 1) { + hsla[3] = 1; + } diff = hsla[3] - old; } else { // hue double old = hsla[0]; |
