dbaccess/source/ui/control/FieldDescControl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c2ea190a0ef9a9eb4f66ea6b708f9a1735d5e0c4 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Wed Jan 13 15:58:18 2021 +0000 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Thu Jan 14 11:42:46 2021 +0100 Resolves: tdf#138675 crash on checking if focus is in OFieldDescControl use has_child_focus instead, which didn't exist at the time of... commit 3fc63a7463149685b04c676968a82bc00a48a9af Date: Fri Aug 28 10:29:55 2020 +0100 weld OTableBorderWindow and so sidestep that m_pActFocusWindow has always fallen out of sync when OFieldDescControl clears its contents Change-Id: I274131c314a00bdfec2e877a2baa3758d45c325f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109127 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.st...@allotropia.de> diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index 2e0813d5ff61..bbd39519ce45 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -1196,7 +1196,7 @@ bool OFieldDescControl::IsFocusInEditableWidget() const bool OFieldDescControl::HasChildPathFocus() const { - return m_pActFocusWindow && m_pActFocusWindow->has_focus(); + return m_xContainer && m_xContainer->has_child_focus(); } bool OFieldDescControl::isCopyAllowed() _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits