Issue 81790 - to clipboard copied or into file exported graphics have a border
Summary: to clipboard copied or into file exported graphics have a border
Status: CONFIRMED
Alias: None
Product: Draw
Classification: Application
Component: code (show other issues)
Version: OOo 2.3
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-20 20:17 UTC by norbert2
Modified: 2013-08-07 15:40 UTC (History)
1 user (show)

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


Attachments
issue_81790.odg (8.66 KB, application/vnd.oasis.opendocument.presentation)
2007-09-20 20:19 UTC, norbert2
no flags Details
issue_81790.png (5.03 KB, image/png)
2007-09-20 20:20 UTC, norbert2
no flags Details
issue_81790_2.odg (7.32 KB, application/vnd.oasis.opendocument.graphics)
2007-10-26 07:11 UTC, norbert2
no flags Details
issue_81790_2.png (2.88 KB, image/png)
2007-10-26 07:11 UTC, norbert2
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description norbert2 2007-09-20 20:17:30 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)
Comment 1 norbert2 2007-09-20 20:19:37 UTC
Created attachment 48378 [details]
issue_81790.odg
Comment 2 norbert2 2007-09-20 20:20:06 UTC
Created attachment 48379 [details]
issue_81790.png
Comment 3 norbert2 2007-09-20 20:26:17 UTC
It looks Draw copies/exports the selection with a too big size and centers the
content therein.
Comment 4 norbert2 2007-09-20 20:40:08 UTC
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.
Comment 5 norbert2 2007-09-20 20:41:37 UTC
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!
Comment 6 wolframgarten 2007-09-27 14:24:16 UTC
Reproducible. Reassigned.
Comment 7 norbert2 2007-10-26 07:11:03 UTC
Created attachment 49169 [details]
issue_81790_2.odg
Comment 8 norbert2 2007-10-26 07:11:29 UTC
Created attachment 49170 [details]
issue_81790_2.png
Comment 9 norbert2 2007-10-26 07:13:15 UTC
I have attached the files and issue_81790_2.odt issue_81790_2.png which contain
the arrow only, that causes the bug.
Comment 10 norbert2 2007-10-26 07:16:00 UTC
typo:
... the files issue_81790_2.odt and issue_81790_2.png ...
Comment 11 Martin Hollmichel 2007-11-09 17:01:36 UTC
set target from 2.x to 3.x according
http://wiki.services.openoffice.org/wiki/Target_3x