[Libreoffice-bugs] [Bug 113615] New: Basic command thiscomponent.currentselection(0) .name returns wrong name of grouped Draw objects

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 2 23:18:04 UTC 2017


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

            Bug ID: 113615
           Summary: Basic command thiscomponent.currentselection(0).name
                    returns wrong name of grouped Draw objects
           Product: LibreOffice
           Version: 4.4 all versions
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: struckkai at gmx.net

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 LibreOffice-Versions (4 and 5er)and OpenOffice4
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:
File1: Names_of_grouped_Draw_objects1.odt
At first it works, after deleting some text the error will occur.
File2: Names_of_grouped_Draw_objects2.odt
Here the error always occurs

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


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:56.0) Gecko/20100101 Firefox/56.0

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171102/07d44be0/attachment-0001.html>


More information about the Libreoffice-bugs mailing list