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

            Bug ID: 162178
           Summary: If no range selection is made, ".uno:AddWatch [F7]"
                    adds an invalid property (method)
           Product: LibreOffice
           Version: 24.8.0.0 beta1+
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
If no range selection is made, ".uno:AddWatch [F7]" adds an invalid property
(method).

Steps to Reproduce:
1. Open New Calc.
2. Create Simple Basic Code.
ex. [Show Cell width]

Sub ShowCellWigth
  Dim oCel As Object
  oCel = ThisComponent.CurrentSelection
  If Not oCel.supportsService("com.sun.star.sheet.SheetCell") Then Exit Sub
  msgbox oCel.Size.width
End Sub

3. Move the cursor to somewhere in "ThisComponent.CurrentSelection". (Do not
select the range)
4. Execute the command ".uno:AddWatch [F7]".

Actual Results:
5. "ThisComponent.CurrentSelection" is added to the observer variables.
If the property is attached to the back, it will be <Out of Scope> and cannot
be referenced.

Expected Results:
5. "ThisComponent" or "CurrentSelection" is added to the observer variables.
"CurrentSelection" can be used as a variable name, so it is not a bug if either
is added.


Reproducible: Always


User Profile Reset: No

Additional Info:

Of course, there is a similar problem with "oCel.Size.width" and an invalid
property is added.

Not Reproduced with
Version: 24.2.5.2 (X86_64) / LibreOffice Community
Build ID: bffef4ea93e59bebbeaf7f431bb02b1a39ee8a59
CPU threads: 4; OS: Windows 10.0 Build 10240; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded

Reproducible with
Version: 24.8.0.0.beta1+ (X86_64) / LibreOffice Community
Build ID: 12b0d0dd2e22a1abc955a11bfe4ae87631409622
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render:
Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded

Reproducible with
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 57f46e0244bdc1165ebbc5e09e4069cc075ff7ae
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 10240); UI render:
Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: ja-JP
Calc: threaded

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

Reply via email to