Issue 52827 - Message box appears, when a graphic object is inserted with wrong URL
Summary: Message box appears, when a graphic object is inserted with wrong URL
Status: CONFIRMED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2005-08-03 12:27 UTC by stephan.wunderlich
Modified: 2017-05-20 11:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description stephan.wunderlich 2005-08-03 12:27:44 UTC
In a draw document the macro

Sub Main
    oDoc = thiscomponent
    oObj = createUnoService("com.sun.star.drawing.GraphicExportFilter")    

    Dim shape As Object
    shape = oDoc.createInstance("com.sun.star.drawing.GraphicObjectShape")

    Dim shapeSize As new com.sun.star.awt.Size
    Dim shapePos As new com.sun.star.awt.Point
    shapeSize.Width = 5000
    shapeSize.Height = 5000
    
    shape.setSize(shapeSize)
    shapePos.x = 1500
    shapePos.y = 1000
       
    shape.setPosition(shapePos)
    
    oDoc.getDrawPages.getByIndex(0).add(shape)
    shape.GraphicURL = "file:///plunder.jpg"
End Sub

pops up a message box, which shouldn't happen when a method is called via API
... this has the side effect that when the same code is called via java, the
office seems to freeze.

In OOo1.1.x this worked properly without any user interaction
Comment 1 christianjunker 2005-08-19 00:30:48 UTC
what's you OS ? I tested on MacOSX Tiger OOo 1.9.121 and I did *not* get any messagebox when applying 
your macro.
Comment 2 stephan.wunderlich 2005-08-19 08:43:43 UTC
sw->cyb: I checked on Solaris but it is independent of the Operating System ...
when the graphic file doesn't exist a message box pops up.
Comment 3 Marcus 2017-05-20 11:28:05 UTC
Reset assigne to the default "issues@openoffice.apache.org".