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/stroke-style.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widgets/stroke-style.cpp') diff --git a/src/widgets/stroke-style.cpp b/src/widgets/stroke-style.cpp index 48f0e3d78..44f9ac714 100644 --- a/src/widgets/stroke-style.cpp +++ b/src/widgets/stroke-style.cpp @@ -877,7 +877,7 @@ StrokeStyle::updateLine() int result_order = sp_desktop_query_style (SP_ACTIVE_DESKTOP, &query, QUERY_STYLE_PROPERTY_PAINTORDER); - SPIPaint &targPaint = (kind == FILL) ? query.fill : query.stroke; + SPIPaint &targPaint = *query.getFillOrStroke(kind == FILL); if (!sel || sel->isEmpty()) { // Nothing selected, grey-out all controls in the stroke-style dialog -- cgit v1.2.3