From e76b6481c69c9a84decea8bcf345a26a4a408462 Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 1 Apr 2012 10:52:46 +0900 Subject: Fix for 950677 : Add stops and repeat controls to the gradient toolbar (bzr r11134) --- src/widgets/gradient-vector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/gradient-vector.cpp') diff --git a/src/widgets/gradient-vector.cpp b/src/widgets/gradient-vector.cpp index d6de0c492..3d6d5a8f2 100644 --- a/src/widgets/gradient-vector.cpp +++ b/src/widgets/gradient-vector.cpp @@ -682,7 +682,7 @@ static void offadjustmentChanged( GtkAdjustment *adjustment, GtkWidget *vb) } } -guint32 sp_average_color(guint32 c1, guint32 c2, gdouble p = 0.5) +guint32 sp_average_color(guint32 c1, guint32 c2, gdouble p/* = 0.5*/) { guint32 r = (guint32) (SP_RGBA32_R_U(c1) * p + SP_RGBA32_R_U(c2) * (1 - p)); guint32 g = (guint32) (SP_RGBA32_G_U(c1) * p + SP_RGBA32_G_U(c2) * (1 - p)); -- cgit v1.2.3