diff options
Diffstat (limited to 'sc/source/ui/unoobj/PivotTableDataProvider.cxx')
-rw-r--r-- | sc/source/ui/unoobj/PivotTableDataProvider.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/PivotTableDataProvider.cxx b/sc/source/ui/unoobj/PivotTableDataProvider.cxx index 581e5a9c9b25..85e8eabfbd6e 100644 --- a/sc/source/ui/unoobj/PivotTableDataProvider.cxx +++ b/sc/source/ui/unoobj/PivotTableDataProvider.cxx @@ -864,13 +864,11 @@ uno::Reference< beans::XPropertySetInfo> SAL_CALL void SAL_CALL PivotTableDataProvider::setPropertyValue(const OUString& rPropertyName, const uno::Any& rValue) { - if (rPropertyName == SC_UNONAME_INCLUDEHIDDENCELLS) - { - if (!(rValue >>= m_bIncludeHiddenCells)) - throw lang::IllegalArgumentException(); - } - else + if (rPropertyName != SC_UNONAME_INCLUDEHIDDENCELLS) throw beans::UnknownPropertyException(); + + if (!(rValue >>= m_bIncludeHiddenCells)) + throw lang::IllegalArgumentException(); } uno::Any SAL_CALL PivotTableDataProvider::getPropertyValue(const OUString& rPropertyName) |