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

            Bug ID: 170700
           Summary: After opening an IDE, selecting a range with the mouse
                    may cause the selection changed event to terminate
                    abnormally
           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:
After opening an IDE, selecting a range with the mouse may cause the selection
changed event to terminate abnormally.

Steps to Reproduce:
1. Open the following sample Calc file.
2. This file has a selection changed event set, which triggers the following
no-operation macro:

```
Function AAAAAA(ev As Variant) As Boolean
  AAAAAA = True
End Function
```

3. Open the Basic-IDE, do nothing with it, and close it immediately.
4. Select a cell by clicking the left mouse button, then try expanding the
selection in any direction.

Actual Results:
5. As you expand or shrink the selection in any direction, Windows will display
one of the following error dialogs:

   Inadmissible value or data type.
   Index out of defined range.
 or
   BASIC runtime error.
   Variable not defined.

Expected Results:
5. Nothing happens.


Reproducible: Always


User Profile Reset: No

Additional Info:

On Linux operating systems, it may also terminate abnormally.

To verify this behavior, it takes several seconds to tens of seconds.

Reproducible
[2026-02-07]
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: ja-JP (ja_JP); UI: en-US
Calc: CL threaded

Reproducible
[2026-02-09]
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: a338ec1d3b2293ff34b159bb2a2da67e249d5655
CPU threads: 2; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: ja-JP (ja_JP.UTF-8); UI: en-US
Calc: threaded

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

Reply via email to