sc/source/ui/view/tabvwshf.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
New commits: commit b550d3b10adf3a7f8c3013c231e8251059343c5e Author: Jan Holesovsky <[email protected]> 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 2b838bf..8ed4937 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -192,8 +192,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 [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
