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

            Bug ID: 171003
           Summary: If ScriptForge created sub-menus are not executed,
                    Application crashes
           Product: LibreOffice
           Version: 26.8.0.0 alpha0+ master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
If ScriptForge created sub-menus are not executed, Application crashes.

Steps to Reproduce:
1. Open the following sample Calc file.
2. Execute sample basic code.
reference:
https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03/sf_menu.html

``` vb
Sub CreateMenu()
    GlobalScope.BasicLibraries.loadLibrary("ScriptForge")
    Dim oDoc as Object, oMenu as Object
    Set oDoc = CreateScriptService("Document")
    Set oMenu = oDoc.CreateMenu("My Menu")
    With oMenu
        .AddItem("Item A>Item A1", Command := "About")
        .Dispose()
    End With
End Sub
```

3. A "My Menu" item will be created at the end of the menu, and a submenu for
"Item A" containing "Item A1" will be created.
4. While viewing "Item A1" in the submenu of "Item A", click a cell in Calc
without clicking the menu.
5. Repeat step [4.] again.

Actual Results:
6. Crash.

Expected Results:
6. You can select Cell.


Reproducible: Always


User Profile Reset: No

Additional Info:

Reproducible
[2026-02-22]
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 680(Build:0)
CPU threads: 4; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster;
VCL: win
Locale: en-US (ja_JP); UI: en-US
Calc: CL threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to