From b3874d0fce9eacd2dc8183cc320c6e963a347c66 Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sat, 7 Jan 2012 22:27:52 +0100 Subject: dropped deprecated function sp_repr_get_double_attribute (bzr r10858) --- src/gradient-chemistry.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gradient-chemistry.cpp') diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp index 990695068..c14a94290 100644 --- a/src/gradient-chemistry.cpp +++ b/src/gradient-chemistry.cpp @@ -739,10 +739,13 @@ void sp_item_gradient_reverse_vector(SPItem *item, bool fill_or_stroke) GSList *child_reprs = NULL; GSList *child_objects = NULL; std::vector offsets; + double offset; for ( SPObject *child = vector->firstChild(); child; child = child->getNext()) { child_reprs = g_slist_prepend (child_reprs, child->getRepr()); child_objects = g_slist_prepend (child_objects, child); - offsets.push_back(sp_repr_get_double_attribute(child->getRepr(), "offset", 0)); + offset=0; + sp_repr_get_double(child->getRepr(), "offset", &offset); + offsets.push_back(offset); } GSList *child_copies = NULL; -- cgit v1.2.3