From 7fe425e57ebea586c26c89dbdceac94d72847cae Mon Sep 17 00:00:00 2001 From: John Smith Date: Tue, 24 Jul 2012 21:50:25 +0900 Subject: Fix for 1028425 : Gradient Stop Alpha value not correct in Fill/Stroke dialog (bzr r11572) --- src/gradient-drag.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gradient-drag.cpp') 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]); -- cgit v1.2.3