diff options
Diffstat (limited to 'svx/source/unodraw/unoshape.cxx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index c22c95ba504a..e3663d024f5e 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -1964,8 +1964,7 @@ beans::PropertyState SvxShape::_getPropertyState( const OUString& PropertyName ) if (pMap->nMemberId == MID_COLOR_THEME_INDEX) { const XFillColorItem* pColor = rSet.GetItem<XFillColorItem>(pMap->nWID); - if (pColor->getComplexColor().getType() == model::ColorType::Unused || - pColor->getComplexColor().getSchemeType() == model::ThemeColorType::Unknown) + if (!pColor->getComplexColor().isValidThemeType()) { eState = beans::PropertyState_DEFAULT_VALUE; } |