summaryrefslogtreecommitdiffstats
path: root/src/widgets/gradient-vector.cpp
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-04-01 01:52:46 +0000
committerJohn Smith <removethis.john.q.public@bigmail.com>2012-04-01 01:52:46 +0000
commite76b6481c69c9a84decea8bcf345a26a4a408462 (patch)
treef68bbc50a72d26f0e4daad8cb10148be16f50279 /src/widgets/gradient-vector.cpp
parentapply essentials of patch by zcgucas (diff)
downloadinkscape-e76b6481c69c9a84decea8bcf345a26a4a408462.tar.gz
inkscape-e76b6481c69c9a84decea8bcf345a26a4a408462.zip
Fix for 950677 : Add stops and repeat controls to the gradient toolbar
(bzr r11134)
Diffstat (limited to 'src/widgets/gradient-vector.cpp')
-rw-r--r--src/widgets/gradient-vector.cpp2
1 files changed, 1 insertions, 1 deletions
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));