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/widgets/gradient-vector.cpp | |
| parent | refactor: private SPIBase::_name (diff) | |
| download | inkscape-98cbf65b029df0cfb9f6b7d34538258fe4ee96c5.tar.gz inkscape-98cbf65b029df0cfb9f6b7d34538258fe4ee96c5.zip | |
refactor: TypedSPI
Diffstat (limited to 'src/widgets/gradient-vector.cpp')
| -rw-r--r-- | src/widgets/gradient-vector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<SPItem*> &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) ? |
