Issue 93804

Summary: "Keep Ratio" value of object is Global, not per instance
Product: Writer Reporter: lllbutcher <lllbutcher>
Component: editingAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues
Version: OOO300m4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Issue Type: ENHANCEMENT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
doc in "keep ratio" is wrongly shared between drawings
none
drawing which is included in bug file (Keep Ratio bug) none

Description lllbutcher 2008-09-12 07:23:50 UTC
When a picture is imported via link or an OLE spreadsheet is linked, with
auto-captioning on, the "Keep Ratio" value in the
right-click>picture>type>size> checkbox of the picture (not the caption) is
applied globally (to all pictures), not to only the drawing selected.

XP, OOO300m4 (Build: 9347)

To replicate:

1) have drawing available (one attached here)

2) new text document
3) enable autocaption on tables
4) tools>options>writer>autocaption
5) check Writer Picture
6) OK

7) Insert>Picture>From File
8) check Link box
9) select picture (file included)
10) Open

11) add a couple of new-lines after the drawing to seperate pictures

again:

12) Insert>Picture>From File
13) check Link
14) select picture
15) Open

Examine state:

16) right-click>frame of top picture (containing caption)
17) Note size>Keep ratio not checked.

18) right-click>picture of top picture INSIDE the caption frame
19) Note size>Keep Ratio checked.
20) Note Size>Width>Relative checked.
21) OK

22) right-click>frame of bottom picture caption
23) Note size>Keep Ratio not checked.

24) right-click>picture of bottom picture INSIDE the caption frame
25) Note size>Keep Ratio checked.
26) Note Size>Width>Relative checked.
27) OK

Induce error by changing BOTTOM picture

28) UnClick Keep ratio box
29) Unclick Relative box
30) OK

31) right-click>picture of top picture INSIDE the caption frame
32) Note size>Keep Ratio checked.
33) Note Size>Width>Relative checked.
34) Unclick Relative box
35) OK

36) right-click>picture of bottom picture INSIDE the caption frame
37) Note that, although you unclicked it in step 29, Keep Ratio now clicked

From now on, if you change Kep Ratio in one picture, it changes in both.

I think that when you have 2 or more pictures like this, and they don't have any
of the relative boxes checked, then they share the "Keep Ratio" value.

Verify (until you get tired of doing so) by
A) right-click one picture, write down "keep ratio" value
B) right-click other picture, change "keep ratio" value
C) right-click first picture, note changed "keep ratio" value

Note that each picture has a private "keep ratio" value if "relative" is checked.

Bug is that each picture should ALWAYS have a private "Keep Relative" setting.
Comment 1 lllbutcher 2008-09-12 07:28:51 UTC
Created attachment 56454 [details]
doc in "keep ratio" is wrongly shared between drawings
Comment 2 lllbutcher 2008-09-12 07:31:54 UTC
Created attachment 56456 [details]
drawing which is included in bug file (Keep Ratio bug)
Comment 3 lllbutcher 2008-09-12 07:39:42 UTC
Sorry.  Second document is a .svm file, but submit wouldn't let use that as a
MIME type.  I did .odt instead.

I don't believe the internals of the included drawing matter.


I have the same trouble with imported tables.  If I change "keep ratio" in one
OLE linked CALC spreadsheet, all change.


This bug is easy to notice, since changing a picture I carefully mess with one
place messes up others which I did different things with.

Comment 4 michael.ruess 2008-09-12 08:43:03 UTC
That's true. Currently the "Keep ratio" is implemented as a dialog control, not
as an object property.
This would mean an "Enhancement" not a Defect. Reassigned to requirements.