[Libreoffice-bugs] [Bug 136423] New: XShapeGrouper::group does not work with a single shape

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 3 06:44:59 UTC 2020


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

            Bug ID: 136423
           Summary: XShapeGrouper::group does not work with a single shape
           Product: LibreOffice
           Version: 7.1.0.0.alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: s.mehrbrodt at gmail.com

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

-- 
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/20200903/8ab4980b/attachment.htm>


More information about the Libreoffice-bugs mailing list