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

            Bug ID: 166613
           Summary: To set the listbox Selection property, the ellipsis
                    tool inserts unwanted values
           Product: LibreOffice
           Version: 7.2.1.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
In the Dialog Editor, changing the "Selection" property for a Listbox control,
the tool opened by the "..." button inserts in the property value, as expected,
the 0-based index of the item selected by the user in the tool. Moreover, it
adds also the index 0. 
Reading the XML code for the listbox, the first item and the correct item have
both the dlg:selected="true". Setting the Multiselection property to "No" do
not stop the bug.
Selecting n items in the "..." tool, it insert in the property value, over the
n correct indexes, the zero index n times. For testing more selections,
remember that the capability of selecting more items depends on the
Multiselection property value and on fixing for the bug
https://bugs.documentfoundation.org/show_bug.cgi?id=166612
Even when I selected the first item (index 0), the property value contains two
zeroes, not only one.
The simplest workaround is to use the Multiline Editing button instead of
"...", but the user must calculate the indexes.


Steps to Reproduce:
1. Create a dialog and insert a ListBox control in it.
2. While the new control is active, look at its properties in the General page.
3. In the "List entries" property, click the Multiline Editing button, write at
least 2 rows, then click Ok
4. In the "Selected" property, click the "..." button on the right. 
5. When you see your items, select the second, then click Ok
6. The "Selected" property value is shown as "0";"1"

Actual Results:
The Selected property value contain n+n indexes: n zeroes and n 0-based indexes
of the n items selected by the user in the tool.

Expected Results:
The Selected property value must contain only n indexes, the 0-based indexes of
the n items selected by the user in the tool.


Reproducible: Always


User Profile Reset: No

Additional Info:
Tryed on Calc and Writer, I suppose happens also on other components.
I cannot test a version older than 7.2, but I reproduced the bug also in the
recent version 25.2.3.2 and in this:

Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 19f3b72f34c487dc97d582712d21734a7e055fd5
CPU threads: 2; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster;
VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: threaded

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

Reply via email to