https://bugs.freedesktop.org/show_bug.cgi?id=44181

Niklas Johansson <sleeping.pil...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTABUG

--- Comment #3 from Niklas Johansson <sleeping.pil...@gmail.com> ---
Before a dialog can be used it's library needs to be loaded that means that
most of the time DialogLibraries.LoadLibrary( "Standard" ) is needed. And if
you provide that line of code then you should not get the error you are
referring to.

I did a test with LibreOffice 4.0.4 (Windows 7) and LibreOffice 3.5.7 (Ubuntu)
and added a dialog to Standard in My Macros on my computer. I hooked it up to
the image in your document, restarted my LibreOffice instance so the Standard
library of My Macros gets unloaded. When I reopen the document and click the
image I get a LibraryNotLoadedException, as expected and just as I get if the
dialog is in the document.

Everything in your bug description is expected behavior (maybe not that obvious
though). The reason that it works the second time is that the Basic IDE loads
the dialog library when it opens the basic code to show you the offending line.

You could possibly argue that the function CreateUnoDialog should be extended
to load the dialog library before it tries to execute it. I do not know what
impact that might have on performance etc.  

Please feel free to file an enhancement request to extend CreateUnoDialog if
you feel strongly about it.

-- 
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