summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-01-07 21:27:52 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-01-07 21:27:52 +0000
commitb3874d0fce9eacd2dc8183cc320c6e963a347c66 (patch)
tree58c94bb6aebb90724ddc9a3fae9920d56884ae89 /src/gradient-chemistry.cpp
parentdocumentation: spelling (diff)
downloadinkscape-b3874d0fce9eacd2dc8183cc320c6e963a347c66.tar.gz
inkscape-b3874d0fce9eacd2dc8183cc320c6e963a347c66.zip
dropped deprecated function sp_repr_get_double_attribute
(bzr r10858)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp5
1 files changed, 4 insertions, 1 deletions
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<double> 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;