<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=113615">113615</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Basic command thiscomponent.currentselection(0).name returns wrong name of grouped Draw objects
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>4.4 all versions
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>BASIC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>struckkai@gmx.net
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>