diff options
| author | Thomas Holder <thomas@thomas-holder.de> | 2019-10-28 11:32:35 +0000 |
|---|---|---|
| committer | Thomas Holder <thomas@thomas-holder.de> | 2019-10-28 11:32:35 +0000 |
| commit | 98cbf65b029df0cfb9f6b7d34538258fe4ee96c5 (patch) | |
| tree | 43153dccc9e85e8aafb9288fc08521d35161e739 /src/desktop-style.cpp | |
| parent | refactor: private SPIBase::_name (diff) | |
| download | inkscape-98cbf65b029df0cfb9f6b7d34538258fe4ee96c5.tar.gz inkscape-98cbf65b029df0cfb9f6b7d34538258fe4ee96c5.zip | |
refactor: TypedSPI
Diffstat (limited to '')
| -rw-r--r-- | src/desktop-style.cpp | 4 |
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; } |
