summaryrefslogtreecommitdiffstats
path: root/src/widgets/paint-selector.cpp
diff options
context:
space:
mode:
authorThomas Holder <thomas@thomas-holder.de>2019-10-28 11:32:35 +0000
committerThomas Holder <thomas@thomas-holder.de>2019-10-28 11:32:35 +0000
commit98cbf65b029df0cfb9f6b7d34538258fe4ee96c5 (patch)
tree43153dccc9e85e8aafb9288fc08521d35161e739 /src/widgets/paint-selector.cpp
parentrefactor: private SPIBase::_name (diff)
downloadinkscape-98cbf65b029df0cfb9f6b7d34538258fe4ee96c5.tar.gz
inkscape-98cbf65b029df0cfb9f6b7d34538258fe4ee96c5.zip
refactor: TypedSPI
Diffstat (limited to 'src/widgets/paint-selector.cpp')
-rw-r--r--src/widgets/paint-selector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/paint-selector.cpp b/src/widgets/paint-selector.cpp
index e80951928..e108fa504 100644
--- a/src/widgets/paint-selector.cpp
+++ b/src/widgets/paint-selector.cpp
@@ -1545,7 +1545,7 @@ void SPPaintSelector::setFlatColor( SPDesktop *desktop, gchar const *color_prope
SPPaintSelector::Mode SPPaintSelector::getModeForStyle(SPStyle const & style, FillOrStroke kind)
{
Mode mode = MODE_UNSET;
- SPIPaint const & target = (kind == FILL) ? style.fill : style.stroke;
+ SPIPaint const &target = *style.getFillOrStroke(kind == FILL);
if ( !target.set ) {
mode = MODE_UNSET;