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

            Bug ID: 113548
           Summary: Crash when running a certain macro from BASIC editor
           Product: LibreOffice
           Version: 5.3.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: major
          Priority: medium
         Component: graphics stack
          Assignee: [email protected]
          Reporter: [email protected]

Add the following BASIC macro to My Macros:

Sub Goback_to_normal_view
Dim document   as object
Dim dispatcher as object
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
Dim args(0) as new com.sun.star.beans.PropertyValue
dispatcher.executeDispatch(document, ".uno:_SwitchViewShell0", "", 0, args())
End Sub


Steps:
- Start a new HTML document.
- Save it.
- Switch to View -> HTML Source.
- Go to the macro editor (Tools -> Macros -> Organize Macros -> LibreOffice
Basic...; find the macro and click Edit).
- Run macro from the editor.

=> There's a crash.
See report:
http://crashreport.libreoffice.org/stats/crash_details/f084c009-4103-4cd8-bec6-884191626551

There's no crash if the macro is run via Tools -> Macros -> Run Macro...
Though sometimes I get "JRE is Defective" error there.

Observed using 6.0 master build (dc55f0618cae0e0ec7877eda065cc4b387e16bfb),
5.4.2.2/ Windows 7.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to