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:21 +0200 |
commit | fbfa25a14164abe77f11323cdf3249f8b1d528ea (patch) | |
tree | 3793e7c45722630956600a1d65cabc980160d469 /sc | |
parent | f200d5700782ae179fd96b6ad4b0fe8e7edd1616 (diff) |
Resolves: tdf#109856 undo 'insert multiple tabs after' doesn't work
Change-Id: I534536358b2a949667c1c258bf27e13763c0de57
Reviewed-on: https://gerrit.libreoffice.org/40621
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 e597ae4485cf..ee5f7699dd01 100644 --- a/sc/source/core/data/document.cxx +++ b/sc/source/core/data/document.cxx @@ -785,7 +785,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]) { |