summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-07-24 12:50:25 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-07-24 12:50:25 +0000
commit7fe425e57ebea586c26c89dbdceac94d72847cae (patch)
tree0b2116450a582cf19f2f11cdb446d72cb16cde84
parentDon't include keyboards in input-device list. Remove comments about private f... (diff)
downloadinkscape-7fe425e57ebea586c26c89dbdceac94d72847cae.tar.gz
inkscape-7fe425e57ebea586c26c89dbdceac94d72847cae.zip
Fix for 1028425 : Gradient Stop Alpha value not correct in Fill/Stroke dialog
(bzr r11572)
-rw-r--r--src/gradient-drag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gradient-drag.cpp b/src/gradient-drag.cpp
index a77eb5e2a..fd5ad159f 100644
--- a/src/gradient-drag.cpp
+++ b/src/gradient-drag.cpp
@@ -185,9 +185,9 @@ int gr_drag_style_query(SPStyle *style, int property, gpointer data)
style->stroke.setColor( cf[0], cf[1], cf[2] );
style->stroke.set = TRUE;
- style->fill_opacity.value = SP_SCALE24_FROM_FLOAT (1.0);
+ style->fill_opacity.value = SP_SCALE24_FROM_FLOAT (cf[3]);
style->fill_opacity.set = TRUE;
- style->stroke_opacity.value = SP_SCALE24_FROM_FLOAT (1.0);
+ style->stroke_opacity.value = SP_SCALE24_FROM_FLOAT (cf[3]);
style->stroke_opacity.set = TRUE;
style->opacity.value = SP_SCALE24_FROM_FLOAT (cf[3]);