[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Jul 26 09:41:38 UTC 2018


 sc/source/ui/docshell/docfunc.cxx |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

New commits:
commit eb880ce1da856964c99dc66fcff1ea560a93c1be
Author:     Eike Rathke <erack at redhat.com>
AuthorDate: Thu Jul 26 11:40:11 2018 +0200
Commit:     Eike Rathke <erack at redhat.com>
CommitDate: Thu Jul 26 11:41:13 2018 +0200

    Refresh AutoFilter buttons unconditionally, tdf#118867 related follow-up
    
    Not just in the merged-does-not-need-refresh case, in the needs
    refresh case ScMF::Auto is not handled.
    
    Change-Id: I6d1b98a4afb51893d052498c87a0477982106a36

diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 7edfa22b517d..3570f4730ed2 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -2640,14 +2640,12 @@ bool ScDocFunc::DeleteCells( const ScRange& rRange, const ScMarkData* pTabMark,
             rDoc.ExtendMerge( aMergedRange, true );
         }
     }
-    else
+
+    itr = aMark.begin();
+    itrEnd = aMark.end();
+    for (; itr != itrEnd && *itr < nTabCount; ++itr)
     {
-        itr = aMark.begin();
-        itrEnd = aMark.end();
-        for (; itr != itrEnd && *itr < nTabCount; ++itr)
-        {
-            rDoc.RefreshAutoFilter( nExtendStartCol, nExtendStartRow, nMergeTestEndCol, nMergeTestEndRow, *itr );
-        }
+        rDoc.RefreshAutoFilter( nExtendStartCol, nExtendStartRow, nMergeTestEndCol, nMergeTestEndRow, *itr );
     }
 
     itr = aMark.begin();


More information about the Libreoffice-commits mailing list