https://bugs.documentfoundation.org/show_bug.cgi?id=94024
Bug ID: 94024
Summary: ZOrder of Shapes stops increment after 65535 Shapes
Product: LibreOffice
Version: 4.0.3.3 release
Hardware: Other
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Draw
Assignee: [email protected]
Reporter: [email protected]
We have integrated LibreOffice in out Tool, and we are creating some Shapes
programmatically in sdraw.
After a few Shapes (more than 65535) the Shapes are not shown as expected (some
are in Back or other, while they should be in Front).
This is because the ZOrder of the Shapes are not incremented after 65535.
I have wrote a Macro to reproduce it (see end of the Description)
In LibreOffice 4.0.3.3 it is reproducible.
I have tried to reproduce it in LibreOffice 5.0.0.5, but the program crashed
after a couple of time and the macro will not finish.
Macro:
Dim shapeSize As new com.sun.star.awt.Size
Dim shapePos As new com.sun.star.awt.Point
Dim I
Dim shape
shapeSize.width = 2000
shapeSize.height = 3000
document = ThisComponent
drawPage = document.DrawPages(0)
For I = 1 To 65540 Step 1
shape = document.createInstance("com.sun.star.drawing.RectangleShape")
drawPage.add(shape)
'shape.ZOrder = i
shapePos.X = i
shapePos.Y = i
shape.setPosition(shapePos)
shape.setSize(shapeSize)
If shape.ZOrder > 65534 Then
MsgBox shape.ZOrder
End If
Next I
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs