From 98cbf65b029df0cfb9f6b7d34538258fe4ee96c5 Mon Sep 17 00:00:00 2001 From: Thomas Holder Date: Mon, 28 Oct 2019 12:32:35 +0100 Subject: refactor: TypedSPI --- 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 cc5fe0185..b9bd99bd8 100644 --- a/src/widgets/gradient-vector.cpp +++ b/src/widgets/gradient-vector.cpp @@ -346,7 +346,7 @@ static void get_all_doc_items(std::vector &list, SPObject *from) */ static SPGradient * gr_item_get_gradient(SPItem *item, gboolean fillorstroke) { - SPIPaint *item_paint = (fillorstroke) ? &(item->style->fill) : &(item->style->stroke); + SPIPaint *item_paint = item->style->getFillOrStroke(fillorstroke); if (item_paint->isPaintserver()) { SPPaintServer *item_server = (fillorstroke) ? -- cgit v1.2.3