sc/source/ui/view/tabvwshf.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit 2c4ccc60075493963229d71df27464a2a4f276e4 Author: Jan Holesovsky <ke...@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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits