summaryrefslogtreecommitdiffstats
path: root/src/desktop-style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop-style.cpp')
-rw-r--r--src/desktop-style.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp
index dc4f0d774..260b442ef 100644
--- a/src/desktop-style.cpp
+++ b/src/desktop-style.cpp
@@ -503,7 +503,7 @@ objects_query_fillstroke (const std::vector<SPItem*> &objects, SPStyle *style_re
return QUERY_STYLE_NOTHING;
}
- SPIPaint *paint_res = isfill? &style_res->fill : &style_res->stroke;
+ SPIPaint *paint_res = style_res->getFillOrStroke(isfill);
bool paintImpossible = true;
paint_res->set = true;
@@ -527,7 +527,7 @@ objects_query_fillstroke (const std::vector<SPItem*> &objects, SPStyle *style_re
continue;
}
- SPIPaint *paint = isfill? &style->fill : &style->stroke;
+ SPIPaint *paint = style->getFillOrStroke(isfill);
if (!paint) {
continue;
}