<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 - XShapeGrouper::group does not work with a single shape"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=136423">136423</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>XShapeGrouper::group does not work with a single shape
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.1.0.0.alpha0+ Master
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>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>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>s.mehrbrodt@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>When using the XShapeGrouper::group function with only a single shape, no shape
group is created.
There is no reason this should not work with a single shape (and the
implementation in Draw/Impress/Calc does work when only a single shape is
given).
Sample (pseudo) python code:
# xDoc = empty Writer document
# xContext = component context
page = xDoc.DrawPage
collection = xContext.ServiceManager.createInstance(
'com.sun.star.drawing.ShapeCollection' )
shape = xDoc.createInstance('com.sun.star.drawing.TextShape')
shape.AnchorType = AT_PARAGRAPH
page.add(shape)
collection.add(shape)
shapegroup = page.group(collection)
Expected:
shapegroup is an XShapeGroup containing the given shape
Actual:
shapegroup is None</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>