diff options
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 ); } |