diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-01 09:16:28 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-08-02 03:46:45 +0200 |
commit | b8db40fb2eb39c4330de475a7cc8155d16479218 (patch) | |
tree | aa0a8a8429a86b14f92316aa94a7cc5001364fec /sc | |
parent | de5afba4c116792d795339f7e773e302259d8bf0 (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>
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]) { |