diff options
author | Mihai Varga <mihai.varga@collabora.com> | 2015-12-21 16:45:41 +0200 |
---|---|---|
committer | Mihai Varga <mihai.mv13@gmail.com> | 2015-12-21 16:50:48 +0200 |
commit | ac2bccd45b770db5f6cbe4abab1ba2f473e893b6 (patch) | |
tree | 748df6c40ffec96a24735c9fed0c910602e10fe1 /sc | |
parent | 6833f382c5c8350256e97e2b342eb939a8c373ba (diff) |
The sheet no. from .uno:Insert can also equal the current no. of tabs
Change-Id: Ifd8655932670fca081af740899441857256ee029
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/tabvwshf.cxx | 2 |
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 ); } |