sc/source/core/data/document.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit fbfa25a14164abe77f11323cdf3249f8b1d528ea Author: Caolán McNamara <caol...@redhat.com> Date: Tue Aug 1 09:16:28 2017 +0100 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.mohrh...@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrh...@googlemail.com> 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]) {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits