Bug 159151 - The default label for a Table Control in a form is "Table Control 1" with 2 blank spaces
Summary: The default label for a Table Control in a form is "Table Control 1" with 2 ...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
7.6.4.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:24.8.0
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-12 13:47 UTC by Rafael Lima
Modified: 2024-01-15 06:02 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2024-01-12 13:47:15 UTC
If you insert a "Table Control" form control into a document, its default label will have 2 spaces in "Table Control  1". This does not happen with other control types.

Steps to reproduce:
1) Create a blank document (f.i. a Calc doc)
2) Insert a "Table Control" in the document (Insert - Form Control - Table Control)
3) Right click the control and go to Control Properties
4) Inspect the control name; notice the extra space before the number

This bug always drove me crazy while debugging a macro where I assumed the name of the control was "Table Control 1" =D

Happens in

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: 60(Build:1)
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 4:7.6.4-0ubuntu0.23.10.1
Calc: threaded

Also in

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ae7807c889c19145f89cec40afac82eee191837c
CPU threads: 16; OS: Linux 6.5; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded
Comment 1 Rafael Lima 2024-01-12 13:59:38 UTC
Fix here:

https://gerrit.libreoffice.org/c/core/+/161947
Comment 2 Commit Notification 2024-01-15 01:17:41 UTC
Rafael Lima committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/83c1df8e524cc74c6d1afcadb3cccba5ef2eb123

tdf#159151 Fix double space in Tree Control

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.