diff options
author | Eike Rathke <erack@redhat.com> | 2017-06-28 18:51:16 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-06-28 18:54:50 +0200 |
commit | c9591f3b6153614c9849b8afbdcacbecc99c1f7c (patch) | |
tree | 2dbc2b4fe4021126116df3357f96423261e3a185 /sc/source | |
parent | 1ec4082d7adb1cbce0b4eed3c45fe2fcba258333 (diff) |
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
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index cb7335a216ba..f2d79b8fd4b4 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 { |