summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
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;