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

            Bug ID: 155359
           Summary: If the first row of a selected cell range contains
                    merged cells, ThisComponent.getCurrentSelection() only
                    selects the mergeed cell.
           Product: LibreOffice
           Version: 7.5.2.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Description:
I select a range of cells and then run a macro that places a border around the
selected cells. The macro uses ThisComponent.getCurrentSelection(), and I've
checked it to see that it does get ScCellRangeObj. The macro works as expected.
However, if the first row of the selected range contains merged cells,
ThisComponent.getCurrentSelection() only "gets" the first row of merged cells
as ScCellObj.
Note: If the any other row conatins merged cells,
ThisComponent.getCurrentSelection() gets the complete range, ScCellRangeObj.

Steps to Reproduce:
1.In a Calc document merge cells A1:E1
2.Select A1:E10
3.Run a simple macro containing:
Dim oSel As Object
oSel = ThisComponent.getCurrentSelection()
MsgBox oSel.ImplementationName


Actual Results:
ScCellObj, i.e., A1:E1

Expected Results:
ScCellRangeObj, i.e, A1:E10


Reproducible: Always


User Profile Reset: No

Additional Info:
Unable to copy the information from menu Help - About LibreOffice.

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

Reply via email to