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

            Bug ID: 149217
           Summary: Macro Writer: method getByIndex() for
                    TextTables.Columns returns Void
           Product: LibreOffice
           Version: 7.3.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 180285
  --> https://bugs.documentfoundation.org/attachment.cgi?id=180285&action=edit
Try to insect the object for Columns in TextTable

1) put the table to new document
2) try to expect variable oColumn in this macro, it is Void

Sub ChangeWidthOfColumn
        dim oDoc as object, oTable as object, oColumn as object
        oDoc=ThisComponent
         oTable=oDoc.TextTables(0)
         oColumn=oTable.Columns.getByIndex(0) 'bug, it returns Void
         mri oColumn
         'mri oTable.Rows.getByIndex(0) 'OK
End Sub

Expected result: oTable.Columns.getByIndex(0) returns an object of the Column
like for oTable.Rows.getByIndex(0)

Version: 7.3.3.1 (x64) / LibreOffice Community
Build ID: 1688991ca59a3ca1c74bc2176b274fba1b034928
CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: CL

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

Reply via email to