[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.0' - sc/source
Jan Holesovsky
kendy at collabora.com
Wed Jan 13 03:00:06 PST 2016
sc/source/ui/view/tabvwshf.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 2c4ccc60075493963229d71df27464a2a4f276e4
Author: Jan Holesovsky <kendy at collabora.com>
Date: Wed Jan 13 11:56:34 2016 +0100
sc: Further .uno:Insert (inserting a new sheet) tweak.
Change-Id: I5437e173009be2b21594abfa133c1b48e53a2ff3
diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx
index 63adab3..82a33dc 100644
--- a/sc/source/ui/view/tabvwshf.cxx
+++ b/sc/source/ui/view/tabvwshf.cxx
@@ -193,8 +193,10 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq )
else
--nTabNr;
- if ( nTabNr <= nTabCount )
- bOk = InsertTable( aName, nTabNr );
+ if (nTabNr > nTabCount)
+ nTabNr = nTabCount;
+
+ bOk = InsertTable(aName, nTabNr);
}
if (bOk)
More information about the Libreoffice-commits
mailing list