[Libreoffice-commits] core.git: sw/source
Aron Budea
aron.budea at collabora.com
Tue Oct 31 19:20:39 UTC 2017
sw/source/uibase/docvw/srcedtw.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit a83a0345e493b928b0b0b93bf106ddb71df69893
Author: Aron Budea <aron.budea at collabora.com>
Date: Tue Oct 31 13:15:34 2017 +0100
tdf#113548: another case of crash in GrabFocus during dispose
Change-Id: I70776b80f70985a122e28854177c6d0c43839d65
Reviewed-on: https://gerrit.libreoffice.org/44113
Reviewed-by: Aron Budea <aron.budea at collabora.com>
Tested-by: Aron Budea <aron.budea at collabora.com>
diff --git a/sw/source/uibase/docvw/srcedtw.cxx b/sw/source/uibase/docvw/srcedtw.cxx
index 5d6a131bfcbb..bf49abb9bf7c 100644
--- a/sw/source/uibase/docvw/srcedtw.cxx
+++ b/sw/source/uibase/docvw/srcedtw.cxx
@@ -793,7 +793,8 @@ void SwSrcEditWindow::HandleWheelCommand( const CommandEvent& rCEvt )
void SwSrcEditWindow::GetFocus()
{
- m_pOutWin->GrabFocus();
+ if (m_pOutWin)
+ m_pOutWin->GrabFocus();
}
static bool lcl_GetLanguagesForEncoding(rtl_TextEncoding eEnc, LanguageType aLanguages[])
More information about the Libreoffice-commits
mailing list