svx/source/table/cell.cxx |   12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

New commits:
commit 35a8e29b095cbc8bbf9c18788ea53c4296d89d16
Author:     Noel Grandin <[email protected]>
AuthorDate: Fri Feb 20 10:19:50 2026 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Fri Feb 20 11:19:21 2026 +0100

    remove dead code in Cell::getPropertyValue
    
    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 pool is never empty.
    
    Change-Id: I1e3c0895e3b9bbef982cbe2758db9fa0ec4ae0a3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199787
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/svx/source/table/cell.cxx b/svx/source/table/cell.cxx
index 8bb87bfd8bb2..7cfb7d1f68a3 100644
--- a/svx/source/table/cell.cxx
+++ b/svx/source/table/cell.cxx
@@ -1196,17 +1196,7 @@ Any SAL_CALL Cell::getPropertyValue( const OUString& 
PropertyName )
 
         Any aAny;
         if(!SvxUnoTextRangeBase::GetPropertyValueHelper( aSet, pMap, aAny ))
-        {
-            if(!aSet.Count())
-            {
-                // fetch the default from ItemPool
-                if(SfxItemPool::IsWhich(pMap->nWID))
-                    
aSet.Put(GetObject().getSdrModelFromSdrObject().GetItemPool().GetUserOrPoolDefaultItem(pMap->nWID));
-            }
-
-            if( aSet.Count() )
-                aAny = GetAnyForItem( aSet, pMap );
-        }
+            aAny = GetAnyForItem( aSet, pMap );
 
         return aAny;
     }

Reply via email to