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

New commits:
commit 6ce730c54dd5cfebd25d0e2ae3ac07fad4586e57
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Oct 19 10:08:56 2018 +0100
Commit:     Michael Stahl <michael.st...@cib.de>
CommitDate: Fri Oct 26 22:02:16 2018 +0200

    index validity check looks dubious
    
    Change-Id: Ib57a26e51a69cc48f82b3474d11fe4f8c8398e07
    Reviewed-on: https://gerrit.libreoffice.org/61995
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@cib.de>

diff --git a/sc/source/ui/cctrl/checklistmenu.cxx 
b/sc/source/ui/cctrl/checklistmenu.cxx
index fb727e812a8c..86746a8dd1c4 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -822,7 +822,7 @@ void 
ScMenuFloatingWindow::ensureSubMenuVisible(ScMenuFloatingWindow* pSubMenu)
 
 void ScMenuFloatingWindow::ensureSubMenuNotVisible()
 {
-    if (mnSelectedMenu <= maMenuItems.size() &&
+    if (mnSelectedMenu < maMenuItems.size() &&
         maMenuItems[mnSelectedMenu].mpSubMenuWin &&
         maMenuItems[mnSelectedMenu].mpSubMenuWin->IsVisible())
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to