incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 120369] New: oDrawDoc.Drawpages(0).Add(oShape) in OSX version cause error
Date Wed, 25 Jul 2012 20:41:16 GMT

          Priority: P3
            Bug ID: 120369
           Summary: oDrawDoc.Drawpages(0).Add(oShape) in OSX version cause
          Severity: critical
        Issue Type: DEFECT
    Classification: Code
                OS: Mac OSX, 10.6
          Hardware: Mac
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: code
           Product: scripting

Created attachment 78729
example macro causing crash

When I try to add a new shape to a Draw document with the command 


it returns the error:

Message: .

The same command works perfectly with AOO 3.4.0 Win version, LibreOffice Mac version and NeoOffice 3.2.1 patch 0 Mac.
The same issue happens in a MacOSX 10.5 with fresh AOO 3.4.0 installed.
Please note tat the shape I wish to insert is a formula, I don't try with other
shapes kind.

Attached a sample Basic Macro useful to verify the problem. Running the only
macro present in the Draw document you will get the error.
The example macro is:

REM  *****  BASIC  *****
Sub InsertFormula()
    Dim oDrawDoc As Object
    Dim oShape As Object
    Dim p As new
    Dim s As new

    p.X = 500
    p.Y = 500
    s.Width = 10000
    s.Height = 5000

    ODrawDoc = ThisComponent

    oShape = ThisComponent.createInstance("")
    oShape.CLSID = "078B7ABA-54FC-457F-8551-6147e776a997"
    oShape.Model.Formula = "size 20 e^{i%pi} + 1 = 0"
    oShape.MoveProtect = False
    oShape.SizeProtect = False

End Sub

You are receiving this mail because:
You are the assignee for the bug.

View raw message