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

--- Comment #1 from Noel Power <nopo...@novell.com> ---
(In reply to Lionel Elie Mamane from comment #0)
> Created attachment 117261 [details]
> reproduction case
> 
> When:
> 
>  - LibreOffice is started with instruction to open document foo.odb
>    (for example, type in a shell "/path/to/soffice foo.odb")
> AND
>  - in foo.odb, the "Open Document" event is bound to a macro "OnOpen"
> AND
>  - the macro "OnOpen" is not saved in foo.odb, but in "My Macros"
>    OR calls (without delay, without a MsgBox before, etc)
>       a macro "Go" that is saved in "My Macros"
> AND
>  - OnOpen/Go tries to use thisComponent
> 
> THEN
> 
> thisComponent is not set to a valid value. E.g., XRay cannot introspect it,
> it doesn't have a supportsService method, ...BUT isEmpty(thisComponent) is
> *false*.
> 

Unlikely this is anything to do with basic but rather something has changed in
the framework code which creates/sets the 'ThisComponent' value. iirc basics
ThisComponent value is set in objxstor.c as part of the opening of a document.
In this case it seems like the object behind 'ThisComponent' at this point is
partially contructed or maybe some sort of placeholder, you'll have to dig
deeper in the framework code I expect

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to