summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-01 09:16:28 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-02 03:46:21 +0200
commitfbfa25a14164abe77f11323cdf3249f8b1d528ea (patch)
tree3793e7c45722630956600a1d65cabc980160d469
parentf200d5700782ae179fd96b6ad4b0fe8e7edd1616 (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>
-rw-r--r--sc/source/core/data/document.cxx2
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])
{