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

--- Comment #10 from Roland Baudin <rolan...@free.fr> ---
I have attached a complete example.

To reproduce the crash:

1. Download Test.zip and unzip it

2. Copy the Test.bas macro in Module1 and edit the line:

  cURL = "file:///home/test/tmpfile.svg"

to reflect the path to tmpfile.svg.

3. Run the Test macro in LO 7.2 => LO 7.2 crashes

4. Set the variable Group to FALSE at line 11 => LO 7.2 does not crash

5. When the variable Group is set to TRUE, the following code is executed
(lines 31-39):

Dim oShapes as Variant
oShapes = createUnoService("com.sun.star.drawing.ShapeCollection")

Dim i as Integer
For i = 0 To oDrawPage.getCount()-1
   oShapes.add(oDrawPage.getByIndex(i))
Next

oDrawPage.group(oShapes)

and then LO 7.2 crahes at line 60:

oDispatcher.executeDispatch( oDrawDocCtrl.Frame, ".uno:ChangeBezier", "", 0,
Array() )

If you set a breakpoint at this line, you will see the Draw document that is
opened and you can check that the graphic elements are grouped, as desired.

There is no crash in LO 7.1.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to