Issue 93458 - Border spacing of graphic leads to distortion when inserting caption
Summary: Border spacing of graphic leads to distortion when inserting caption
Status: CONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: editing (show other issues)
Version: OOO300m3
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-04 09:32 UTC by helpman
Modified: 2017-05-20 11:17 UTC (History)
1 user (show)

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


Attachments
Sample file showing the 'image size distortion' bug (51.53 KB, application/vnd.oasis.opendocument.text)
2008-09-04 15:00 UTC, helpman
no flags Details
Same document, but with an 'undistorted image' (72.71 KB, application/vnd.sun.xml.writer)
2008-09-08 14:08 UTC, helpman
no flags Details
Sample showing an overlay of two graphics, before and after caption insertion (140.99 KB, application/vnd.oasis.opendocument.graphics)
2008-09-08 14:11 UTC, helpman
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description helpman 2008-09-04 09:32:12 UTC
The Height of an inserted image (bitmap) always changes when adding a caption.
The height increases, distorting the apsect ratio of the inserted image. This
even happens when the 'Protect Size' option of the image is set (can't resize
the image manually using the handles).
POC:
1. Insert an image
2. Got to the 'Picture' context menu, Tab 'Options'
3. Set 'Protect - Size' to checked
4. Select OK (--> Image is size-protected
5. Go to 'Caption' context menu for this picture
6. Enter a caption and select OK 
--> The caption is added below the image and the image height has increased.
Comment 1 michael.ruess 2008-09-04 13:20:02 UTC
I cannot reproduce this my test graphics. Could you please attach a document
containing a graphic which shows the behavior when inserted? Thanks a lot!
Comment 2 helpman 2008-09-04 15:00:03 UTC
Created attachment 56241 [details]
Sample file showing the 'image size distortion' bug
Comment 3 helpman 2008-09-04 15:01:48 UTC
I've attached a short demo showing this problem. It does not seem to happen in a
new, blank file however (just tested that)
Comment 4 michael.ruess 2008-09-05 16:04:22 UTC
Do you have a version of the file where the graphic does not already have the
caption? this will be essential for debugging the faulty process.
Comment 5 helpman 2008-09-08 14:08:30 UTC
Created attachment 56323 [details]
Same document, but with an 'undistorted image'
Comment 6 helpman 2008-09-08 14:11:33 UTC
Created attachment 56324 [details]
Sample showing an overlay of two graphics, before and after caption insertion
Comment 7 helpman 2008-09-08 14:14:55 UTC
The table on the bottom of the first page is 'freshly' insertet. This image get
resized in height after adding a caption. 
I've also attached a drawing showing the overlay of a 'before' and 'after'
graphic, just for illustrating the resize-effect.

PS - Maybe it is worth mentioning that the original doc was converted from a
Word 2003 doc
Comment 8 michael.ruess 2008-09-08 15:53:59 UTC
MRU->OS: when a graphic's border has a "spacing to content", this should not be
handed over to the caption's frame border. In a graphic this has influence on
the aspect ratio of the graphic's content. It does not have anymore on the
frame's border...
Comment 9 Marcus 2017-05-20 11:17:47 UTC
Reset assigne to the default "issues@openoffice.apache.org".