Issue 125998

Summary: Position and size of inserted chart is bind to the outline presentation object
Product: Impress Reporter: Regina Henschel <rb.henschel>
Component: editingAssignee: AOO issues mailing list <issues>
Status: UNCONFIRMED --- QA Contact:
Severity: Normal    
Priority: P3 CC: grichblix
Version: 4.1.1   
Target Milestone: ---   
Hardware: All   
OS: Windows 7   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description Regina Henschel 2015-01-03 19:06:37 UTC
1. Start a new presentation.
2. Select slide layout "Title, Content".
3. From "Media-Chooser" in the middle of the empty "Content"-object select chart. You get a default chart OLE object and the empty "Content"-object is gone. [It needs to be discussed, whether this is the desired behavior.]
4. Drag the width of the chart to its half. Set position and size protected in the Position&Size dialog.
5. Klick again on slide layout "Title, Content".
Expected behavior: You get an empty "Content"-object.
Seen behavior: No empty "Content" object, but the chart is stretched to the size of the former "Content" object.

Or
4. Switch to Slide Master view.
5. Drag the outline object to half its width.
6. Close Master view.
Expected behavior: Chart is not effected.
Seen behavior: Chart is transformed to the new size of the outline object.
Comment 1 Ken Reinert 2015-04-09 16:27:54 UTC
Confirmed error in:
- AOO411m6(Build:9775)  -  Rev. 1617669 2014-08-13 09:06:54 (Mi, 13 Aug 2014)
- Windows 7 Ultimate (64 bit version)

There are actually two separate issues mentioned in the initial report and both were replicated.

First issue, content frames with content being resized by changing layout:

Minimum required steps:
1. With an existing blank slide open, select a slide layout containing a content frame
2. From the media chooser, select one of the content types and insert the object (or alternatively, use the insert menu)
3. Resize the content frame containing content
4. Re-select the same layout from the properties pane, or an alternative layout with content frames

Result - Content is resized to conform to the size of the default content frame in the new layout.

This may actually be expected behavior of the layout feature.  The documentation for Open Office 3 (https://wiki.openoffice.org/wiki/Documentation/OOo3_User_Guides/Impress_Guide/Formatting_a_presentation) indicates that changing the layout does not cause loss of contents already on the slide.  When any content (other than images, confirmed with text, movies, tables and charts) are inserted into a content frame, changing layout will resize that content frame, but will not remove it.  If multiple content frames have content, each will be resized and preserved so that no content is lost.  This is an intended feature of the default content frames in the different layouts.

Workaround - To avoid this issue, chose a layout that does not have content frames and insert the object from the insert menu, or paste it into the slide. 

[Note: if a content frame is present, the object will automatically be inserted into one of the available content frames.  This may be related to:
issue 124784 - https://bz.apache.org/ooo/show_bug.cgi?id=124784
issue 125613 - https://bz.apache.org/ooo/show_bug.cgi?id=125613
and may be fixed in version AOO 4.2.0 r1658822]


Second issue, content frames being resized with changes to the default content area in the master slide:

Minimum required steps:
1. With an existing blank slide open, select a slide layout containing a content frame
2. From the media chooser, select one of the content types and insert the object (or alternatively, use the insert menu). *See Note*
3. From the view menu, select master, and then slide master
4. Adjust the size of the default content area in the slide master
5. Close the master view to return to the normal view
6. (Occasionally required) Select a new layout with content frames from the property pane

Result - Layout content resized to fit into the adjusted default content area from the slide master

*Note* - Unless a new layout is selected, inserted movies and occasionally charts are unaffected by the resizing.  If a new layout is selected, all content enclosed in layout content frames will be resized.

This behavior seems to be a valid bug.  Documentation for Open Office 3 (https://wiki.openoffice.org/wiki/Documentation/OOo3_User_Guides/Impress_Guide/Modifying_a_slide_master) state that "changes made to one of the slides in Normal View ... will not be overridden by subsequent changes to the slide master.  Although the specific examples cited are text changes, it seems reasonable that this should also hold for non-text slide content.  As such, content resizing after editing the master slide clearly seems to be an undesired behavior.  When a new layout is chosen, and the content is resized to fit the adjusted layout, this seems more reasonable but whether or not this is the desired behavior needs to be discussed.

Workaround - Again, to avoid this issue, choose a layout that does not contain content frames, and then insert or paste your content.  Since the resulting objects are not in content frames, they will not be affected by subsequent changes to either the master slide or layout.
Comment 2 Ken Reinert 2015-04-10 14:51:20 UTC
It might be a good idea to split this into two issues:

1. [Discuss] Selecting new Layout moves and resizes existing content

2. Resizing Master Slide AutoLayout areas affects existing layout