https://bugs.documentfoundation.org/show_bug.cgi?id=168342
Bug ID: 168342
Summary: Macro to manipulate table fails in Writer of
LibreOfficeDev 26 Alpha
Product: LibreOffice
Version: 26.2.0.0 alpha0+ master
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 202770
--> https://bugs.documentfoundation.org/attachment.cgi?id=202770&action=edit
Includes the test file, the debug macro, and its output
In LibreOfficeDev 26.0.0.0 alpha0+, a Basic macro accessing
`TextTable.Columns.getByIndex(i)` returns `Null` for all columns, despite
`Columns.getCount()` reporting the correct count (e.g., 2 for a 2x3 table).
This prevents accessing column properties like `Width`. Other issues include
"Internal error $(ARG1)" when iterating UNO collections (e.g.,
`getPropertySetInfo().getProperties()`, `getAvailableServiceNames()`) and zero
`Height`/`Width` values in earlier attempts.
Steps to Reproduce:
1. Open Writer, create a 2x3 table (no merged cells).
2. Add text (e.g., "A", "Long text", "Very long text").
3. Place cursor in table.
4. Run attached macro (`DebugTableObjectsMinimal`).
5. Observe: `Columns.getByIndex(i)` returns `Null` for all columns, while
`getCount()` reports 2.
Expected:
- `getByIndex(i)` returns valid `XTableColumn` objects with properties like
`Width`.
Actual:
- `getByIndex(i)` returns `Null` (Error: 0).
- Debug output confirms table access, cell names, and row access work, but
columns fail.
Attachments:
- Macro code (`DebugTableObjectsMinimal`).
- Debug output (attached).
- Test document (.odt with 2x3 table).
Related: Bug
#168331[](https://bugs.documentfoundation.org/show_bug.cgi?id=168331).
--
You are receiving this mail because:
You are the assignee for the bug.