[Libreoffice-bugs] [Bug 135528] CRASH running a macro (that changes text) from IDE, when StylesInspector is running

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 11 10:28:35 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=135528

--- Comment #2 from Mike Kaganski <mikekaganski at hotmail.com> ---
A code pointer:

WriterInspectorTextPanel's AttrChangedNotify tries to get a "current" shell,
which might change over time, while the panel should be bound to the original
shell.

On the other hand, Writer's SI captures a SwWrtShell in its ctor, which is what
may be used later everywhere when it needs any shell. E.g., the SwWrtShell is
the shell that provides cursor itself; to get document shell from SwWrtShell,
you call m_pShell->GetDoc()->GetDocShell().

HTH.

-- 
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/20200811/4caa3981/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list