diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-01 09:16:28 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-08-04 12:01:28 +0200 |
commit | b52c271928bc1d9630fa180bc3e275fc274c613d (patch) | |
tree | 4695b654a84ae04bfcbecbc8e51f7b53d8b1f82c /sc | |
parent | 46b5c00ae76385722416819efc15c4116a2872f8 (diff) |
Resolves: tdf#109856 undo 'insert multiple tabs after' doesn't work
Change-Id: I534536358b2a949667c1c258bf27e13763c0de57
Reviewed-on: https://gerrit.libreoffice.org/40622
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
(cherry picked from commit b8db40fb2eb39c4330de475a7cc8155d16479218)
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx index 3b968eb79e02..54cb77bafedc 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -786,7 +786,7 @@ void ScDocument::ClearTabs() bool ScDocument::DeleteTabs( SCTAB nTab, SCTAB nSheets ) { bool bValid = false; - if (ValidTab(nTab) && (nTab + nSheets) < static_cast<SCTAB>(maTabs.size())) + if (ValidTab(nTab) && (nTab + nSheets) <= static_cast<SCTAB>(maTabs.size())) { if (maTabs[nTab]) { |