[Libreoffice-bugs] [Bug 113548] Crash when running a certain macro from BASIC editor
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Oct 31 09:58:32 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=113548
Maxim Monastirsky <momonasmon at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |momonasmon at gmail.com
See Also|https://bugs.documentfounda |
|tion.org/show_bug.cgi?id=10 |
|5121 |
--- Comment #3 from Maxim Monastirsky <momonasmon at gmail.com> ---
(In reply to Aron Budea from comment #2)
> The trace is somewhat similar to bug 105121's.
Not directly related to bug 105121, but this is a common pattern since the
VclPtr conversion to have the GetFocus method of a window called during its
dispose, and the GetFocus method tries to set the focus to one of its child
controls, which will crash if this particular control was already destructed to
this point. There are dozens of similar bugs in Bugzilla. The usual fix we
apply in those cases is to add a check inside GetFocus, whether the child is
still valid, so you might want to try this (can't do any development myself
right now):
void SwSrcEditWindow::GetFocus()
{
+ if (m_pOutWin)
m_pOutWin->GrabFocus();
}
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171031/14ec1f95/attachment.html>
More information about the Libreoffice-bugs
mailing list