From 93adda8562b09e14624e52a9bb3fd1e5f321789d Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 13 Jan 2016 14:36:23 +0100 Subject: Revert "sc: Further .uno:Insert (inserting a new sheet) tweak." This reverts commit b550d3b10adf3a7f8c3013c231e8251059343c5e. --- sc/source/ui/view/tabvwshf.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx index 8ed4937c1f8c..2b838bf69b04 100644 --- a/sc/source/ui/view/tabvwshf.cxx +++ b/sc/source/ui/view/tabvwshf.cxx @@ -192,10 +192,8 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq ) else --nTabNr; - if (nTabNr > nTabCount) - nTabNr = nTabCount; - - bOk = InsertTable(aName, nTabNr); + if ( nTabNr <= nTabCount ) + bOk = InsertTable( aName, nTabNr ); } if (bOk) -- cgit