summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-12-21 16:45:41 +0200
committerMihai Varga <mihai.mv13@gmail.com>2015-12-21 16:50:48 +0200
commitac2bccd45b770db5f6cbe4abab1ba2f473e893b6 (patch)
tree748df6c40ffec96a24735c9fed0c910602e10fe1
parent6833f382c5c8350256e97e2b342eb939a8c373ba (diff)
The sheet no. from .uno:Insert can also equal the current no. of tabs
Change-Id: Ifd8655932670fca081af740899441857256ee029
-rw-r--r--sc/source/ui/view/tabvwshf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx
index cc64215a8696..6c8d7de664ea 100644
--- a/sc/source/ui/view/tabvwshf.cxx
+++ b/sc/source/ui/view/tabvwshf.cxx
@@ -187,7 +187,7 @@ void ScTabViewShell::ExecuteTable( SfxRequest& rReq )
aName = static_cast<const SfxStringItem*>(pNameItem)->GetValue();
nTabNr = static_cast<const SfxUInt16Item*>(pTabItem)->GetValue() - 1;
- if ( nTabNr < nTabCount )
+ if ( nTabNr <= nTabCount )
bOk = InsertTable( aName, nTabNr );
}