svx/source/table/cell.cxx | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-)
New commits: commit 1a49cc1a9636b92c8acea651d72f048c551b88f6 Author: Noel Grandin <[email protected]> AuthorDate: Thu Feb 19 10:38:51 2026 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Thu Feb 19 12:25:36 2026 +0100 remove dead code in Cell::setPropertyValue Ever since it was added in commit 75f7adefa186bb120a8e77b5872d6d5cb086a6f8 Author: RĂ¼diger Timm <[email protected]> Date: Wed Mar 12 08:58:58 2008 +0000 INTEGRATION: CWS impresstables2 (1.1.2); FILE ADDED It is dead because we add an item to the pool when we construct the pool, so the itemstate is always SET Change-Id: Ic51a506eff1609ee54ae06d2040a835bf1681840 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199694 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx index 0d4bf97d3bb2..44ae76ff3c95 100644 --- a/svx/source/table/cell.cxx +++ b/svx/source/table/cell.cxx @@ -1104,24 +1104,8 @@ void SAL_CALL Cell::setPropertyValue( const OUString& rPropertyName, const Any& break; } - if( !bSpecial ) - { - - if( !SvxUnoTextRangeBase::SetPropertyValueHelper( pMap, rValue, aSet )) - { - if( aSet.GetItemState( pMap->nWID ) != SfxItemState::SET ) - { - // fetch the default from ItemPool - if(SfxItemPool::IsWhich(pMap->nWID)) - aSet.Put(GetObject().getSdrModelFromSdrObject().GetItemPool().GetUserOrPoolDefaultItem(pMap->nWID)); - } - - if( aSet.GetItemState( pMap->nWID ) == SfxItemState::SET ) - { - SvxItemPropertySet_setPropertyValue( pMap, rValue, aSet ); - } - } - } + if( !bSpecial && !SvxUnoTextRangeBase::SetPropertyValueHelper( pMap, rValue, aSet )) + SvxItemPropertySet_setPropertyValue( pMap, rValue, aSet ); GetObject().getSdrModelFromSdrObject().SetChanged(); mpProperties->SetMergedItemSetAndBroadcast( aSet );
