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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to