<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - changing properties of inserted graphic-objects via macro (Basic) causes file store error"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=111731">111731</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>changing properties of inserted graphic-objects via macro (Basic) causes file store error
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>5.3.1.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Writer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>tk@mic-consulting.de
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=135491" name="attach_135491" title="error message during storing prozess">attachment 135491</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=135491&action=edit" title="error message during storing prozess">[details]</a></span>
error message during storing prozess
situation:
You do have a writer document and insert a picture/graphic via UI (Icon or menu
insert-> picture).
- store that file.
Everything is ok.
Now you manipulate the properties of ths graphic object via API - in ths case
with basic macros.
- I checked size, position and some others.
- works fine during processing and visible on screen (UI).
Try to store document afterwards it will cause a error message, that the
"content.xml" can not be written. (see attaches pic 1).
You cannot store document - not even with "store as".
You can kill the document.... or delete the manipulated graphic. this takes
away the error.
Attached is a sample-file to show the behaviour:
Store the file on a local drive. Open it. accept Macros.
add same text or something. store the file -> ok
select the graphic, run the macro. Pic ist reduced in size.
now try to store the doc again.....
Included small macro just for test:
#######
Sub ChangeBildSize
oDoc = thisComponent
sName = oDoc.CurrentController.ViewCursor.textframe.name
'msgbox sName
oObj = oDoc.GraphicObjects.getbyName(sName)
REM Change size
oSize = oObj.getSize()
oSize.Height = oSize.Height/2
oSize.Width = oSize.Width/2
oObj.setSize(oSize)
End Sub
#######</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>