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/selection-chemistry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/selection-chemistry.cpp') diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 4543de57b..26b406dbe 100755 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -2007,12 +2007,12 @@ std::vector sp_get_same_fill_or_stroke_color(SPItem *sel, std::vector matches ; gboolean match = false; - SPIPaint *sel_paint = (type == SP_FILL_COLOR) ? &(sel->style->fill) : &(sel->style->stroke); + SPIPaint *sel_paint = sel->style->getFillOrStroke(type == SP_FILL_COLOR); for (std::vector::const_reverse_iterator i=src.rbegin();i!=src.rend();++i) { SPItem *iter = *i; if (iter) { - SPIPaint *iter_paint = (type == SP_FILL_COLOR) ? &(iter->style->fill) : &(iter->style->stroke); + SPIPaint *iter_paint = iter->style->getFillOrStroke(type == SP_FILL_COLOR); match = false; if (sel_paint->isColor() && iter_paint->isColor() // color == color comparison doesn't seem to work here. && (sel_paint->value.color.toRGBA32(1.0) == iter_paint->value.color.toRGBA32(1.0))) { -- cgit v1.2.3