sc/source/core/data/document.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 40ec546c5f2a60a9f13a1eab1e174ae50f429d0d
Author:     Noel Grandin <[email protected]>
AuthorDate: Thu Jun 26 14:15:53 2025 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Jun 26 16:30:46 2025 +0200

    nMask is never HasAttrFlags::NONE
    
    after
        commit ed0579b141b35ffd205562f10c739e0617fb9a70
        Author: Noel Grandin <[email protected]>
        Date:   Fri Jun 20 14:01:11 2025 +0200
        cool: reduce time spent in FillInfo
    
    spotted by caolanm
    
    Change-Id: I28e5666d59d0bb0c9020aadc4e8c27f6b14badca
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187039
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 94f21445c8c4..b18a68041448 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -5190,9 +5190,6 @@ void ScDocument::GetSelectionFrame( const ScMarkData& 
rMark,
 bool ScDocument::HasAttrib( SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
                             SCCOL nCol2, SCROW nRow2, SCTAB nTab2, 
HasAttrFlags nMask ) const
 {
-    if (nMask == HasAttrFlags::NONE)
-        return false;
-
     for (SCTAB i = nTab1; i <= nTab2 && i < GetTableCount(); i++)
         if (maTabs[i])
         {
@@ -5215,7 +5212,7 @@ bool ScDocument::HasAttrib( SCCOL nCol1, SCROW nRow1, 
SCTAB nTab1,
 
 bool ScDocument::HasAttrib( SCCOL nCol, SCROW nRow, SCTAB nTab, HasAttrFlags 
nMask, SCROW* nStartRow, SCROW* nEndRow ) const
 {
-    if (nMask == HasAttrFlags::NONE || nTab >= GetTableCount())
+    if (nTab >= GetTableCount())
     {
         if( nStartRow )
             *nStartRow = 0;

Reply via email to