sc/source/ui/view/tabvwshf.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ac2bccd45b770db5f6cbe4abab1ba2f473e893b6
Author: Mihai Varga <mihai.va...@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 );
                     }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to