sc/source/ui/view/tabview.cxx | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-)
New commits: commit 2c9dc34b332b6cb4c121e85989e4e8e2ab822ea5 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Sat Jan 18 12:01:24 2020 +0300 Commit: Eike Rathke <er...@redhat.com> CommitDate: Wed Feb 12 17:58:15 2020 +0100 tdf#130054: consider all row/col bars in ScTabView::EnableRefInput Left col bar and bottom row bar were ignored - apparently overlooked at least since commit 9ae5a91f7955e44d3b24a3f7741f9bca02ac7f24. Change-Id: I5c2386b0aa1fdbb42f352c0b654e268dc62c7e66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87007 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> (cherry picked from commit bda31b1a95b284749cd5e4d9596aab8e1aa93714) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87022 Reviewed-by: Eike Rathke <er...@redhat.com> diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx index ec52581dad23..53e03e61de07 100644 --- a/sc/source/ui/view/tabview.cxx +++ b/sc/source/ui/view/tabview.cxx @@ -2245,18 +2245,15 @@ void ScTabView::EnableRefInput(bool bFlag) if(pTabControl!=nullptr) pTabControl->EnableInput(bFlag); - if(pGridWin[SC_SPLIT_BOTTOMLEFT]!=nullptr) - pGridWin[SC_SPLIT_BOTTOMLEFT]->EnableInput(bFlag,false); - if(pGridWin[SC_SPLIT_BOTTOMRIGHT]!=nullptr) - pGridWin[SC_SPLIT_BOTTOMRIGHT]->EnableInput(bFlag,false); - if(pGridWin[SC_SPLIT_TOPLEFT]!=nullptr) - pGridWin[SC_SPLIT_TOPLEFT]->EnableInput(bFlag,false); - if(pGridWin[SC_SPLIT_TOPRIGHT]!=nullptr) - pGridWin[SC_SPLIT_TOPRIGHT]->EnableInput(bFlag,false); - if(pColBar[SC_SPLIT_RIGHT]!=nullptr) - pColBar[SC_SPLIT_RIGHT]->EnableInput(bFlag,false); - if(pRowBar[SC_SPLIT_TOP]!=nullptr) - pRowBar[SC_SPLIT_TOP]->EnableInput(bFlag,false); + for (auto& p : pGridWin) + if (p) + p->EnableInput(bFlag, false); + for (auto& p : pColBar) + if (p) + p->EnableInput(bFlag, false); + for (auto& p : pRowBar) + if (p) + p->EnableInput(bFlag, false); } bool ScTabView::ContinueOnlineSpelling() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits