Apache OpenOffice (AOO) Bugzilla – Issue 81790
to clipboard copied or into file exported graphics have a border
Last modified: 2013-08-07 15:40:43 UTC
Hi, - please open the attached odt - press ctrl+a to select all - press ctrl+c to copy it into clipboard - paste as Bitmap or GDI metafile: Note that the pasted image has a border. In case of Bitmap you can see the problem better because of its white background on the gray page background. But the GDI metafile has the same problem: You can see it on the green points after you have selected it. Exporting the selection into a file is affacted by the bug too. (attached png)
Created attachment 48378 [details] issue_81790.odg
Created attachment 48379 [details] issue_81790.png
It looks Draw copies/exports the selection with a too big size and centers the content therein.
I found out, that the problem is caused by the arrow. Please remove all objects, except the arrow from the document. Then select, copy and paste it as bitmap: Now you can see that the white area is bigger than the minimum box around the arrow! I found out more: In draw, objects can be selected by "pulling" rectangles with the mouse. Objects that are COMPLETELY within that rectangle are selected after releasing the left mouse button. If you try to select the arrow with that method by pulling a rectangle that has exactly the size of the arrow or minimal bigger, the arrow is NOT selected! The selection-rectangle has to be a bit bigger as the minimum box around the arrow. It looks like this "more size" that is needed to select the arrow is exactly the border that is copied/exported. I hope you understand what I mean. Please let me know if you need a better description.
This bug is really annoying when exporting graphics to use it in other documents. I have to import them into GIMP first, to remove the border!
Reproducible. Reassigned.
Created attachment 49169 [details] issue_81790_2.odg
Created attachment 49170 [details] issue_81790_2.png
I have attached the files and issue_81790_2.odt issue_81790_2.png which contain the arrow only, that causes the bug.
typo: ... the files issue_81790_2.odt and issue_81790_2.png ...
set target from 2.x to 3.x according http://wiki.services.openoffice.org/wiki/Target_3x