[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sc/source

Eike Rathke erack at redhat.com
Sun Jul 2 03:08:51 UTC 2017


 sc/source/ui/view/viewdata.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit aaa0d9af02ad7484377f946d528cdbfc51483c9d
Author: Eike Rathke <erack at redhat.com>
Date:   Wed Jun 28 18:51:16 2017 +0200

    Resolves: tdf#108796 let ScViewData::InsertTabs() insert the correct amount
    
    ... at the correct position. This only ever worked by chance, if at all, and
    now surfaced after
    
        commit 73dec49802ef8fc42c5719efaa42a33cde68e569
        Date:   Tue Mar 7 10:46:12 2017 +0100
    
    Change-Id: I9bd0aeb5a471bd644c1497306effe9045c1daa97
    (cherry picked from commit c9591f3b6153614c9849b8afbdcacbecc99c1f7c)
    Reviewed-on: https://gerrit.libreoffice.org/39373
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 789e84c17e46..e0fe575a7d27 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -527,7 +527,7 @@ void ScViewData::InsertTab( SCTAB nTab )
 
 void ScViewData::InsertTabs( SCTAB nTab, SCTAB nNewSheets )
 {
-    if( nTab+nNewSheets >= static_cast<SCTAB>(maTabData.size()))
+    if (nTab >= static_cast<SCTAB>(maTabData.size()))
         maTabData.resize(nTab+nNewSheets, nullptr);
     else
     {


More information about the Libreoffice-commits mailing list