[Libreoffice-commits] core.git: sc/source
Mihai Varga
mihai.varga at collabora.com
Mon Dec 21 06:52:08 PST 2015
sc/source/ui/view/tabvwshf.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit ac2bccd45b770db5f6cbe4abab1ba2f473e893b6
Author: Mihai Varga <mihai.varga at collabora.com>
Date: Mon Dec 21 16:45:41 2015 +0200
The sheet no. from .uno:Insert can also equal the current no. of tabs
Change-Id: Ifd8655932670fca081af740899441857256ee029
diff --git a/sc/source/ui/view/tabvwshf.cxx b/sc/source/ui/view/tabvwshf.cxx
index cc64215..6c8d7de 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 );
}
More information about the Libreoffice-commits
mailing list