Bug 149217 - Macro Writer: method getByIndex() for TextTables.Columns returns Void
Summary: Macro Writer: method getByIndex() for TextTables.Columns returns Void
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-UNOAPI
  Show dependency treegraph
 
Reported: 2022-05-21 14:24 UTC by Kamil Landa
Modified: 2022-07-10 01:31 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Try to insect the object for Columns in TextTable (16.26 KB, application/vnd.oasis.opendocument.text)
2022-05-21 14:24 UTC, Kamil Landa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kamil Landa 2022-05-21 14:24:44 UTC
Created attachment 180285 [details]
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
Comment 1 Philippe Lévi 2022-05-21 16:00:34 UTC
Confirmed !
Comment 3 raal 2022-05-22 09:55:08 UTC
Reproducible with Version 4.1.0.0.alpha0+ on Linux. Probably Inherited from OOo.