https://bz.apache.org/ooo/show_bug.cgi?id=127604

          Issue ID: 127604
        Issue Type: DEFECT
           Summary: Basic command thiscomponent.currentselection(0).name
                    returns wrong name of grouped Draw objects
           Product: App Dev
           Version: 4.1.2
          Hardware: Other
                OS: Linux, all
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P5 (lowest)
         Component: scripting
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 86267
  --> https://bz.apache.org/ooo/attachment.cgi?id=86267&action=edit
Names_of_grouped_Draw_objects2.odt

Note: This Bug is fixed in LibreOffice 5.4.4
Here is the LibreOffice BugReport:
https://bugs.documentfoundation.org/show_bug.cgi?id=113615

Description:
the BASIC command thiscomponent.currentselection(0).name returns the wrong name
of grouped Draw Objects.
In Writer: If multiple Draw objects are grouped and this grouped object is
given a name (e.g. "linegroup") the above command should return this grouped
object name but it returns the name of one of the elements instead e.g "line1".
This error occurs in all tested OpenOffice-Versions on most Linux systems like
Linux Mint, Ubuntu. Both 64bit and 32bit versions. It works correctly on
Lubuntu, Windows,OSX. 

Steps to Reproduce:
1. create 2 draw lines and give each a name. eg."line1" and "line2"
2. group the 2 lines
3. give the grouped object a name e.g. "linegroup"
4. select the object and run the basic program:
sub showname
msgbox thiscomponent.currentselection(0).name
end sub

It should show the name of the grouped object: "linegroup"
5. insert and delete texts. Save, try again.
At some point the error will occur and it will show the name of one of the
elements e.g. "line2" instead of the grouped object ("linegroup")

Because it may not appear immediately try it with the attached files:
File2: Names_of_grouped_Draw_objects2.odt

Actual Results:  
At some point the error will occur and it will show the name of one of the
elements e.g. "line2" instead of the grouped object ("linegroup")

Expected Results:
It always should show the name of the grouped object ("linegroup")


Reproducible: Always

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

Reply via email to