sc/source/ui/cctrl/checklistmenu.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6ce730c54dd5cfebd25d0e2ae3ac07fad4586e57 Author: Caolán McNamara <[email protected]> AuthorDate: Fri Oct 19 10:08:56 2018 +0100 Commit: Michael Stahl <[email protected]> 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 <[email protected]> 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 [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
