Issue 122622 - Direct formatting added when copy-pasting pages
Summary: Direct formatting added when copy-pasting pages
Alias: None
Product: Draw
Classification: Application
Component: formatting (show other issues)
Version: 3.4.1
Hardware: PC Other OS
: P3 Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2013-06-28 14:30 UTC by eric.edwards.msb
Modified: 2013-06-28 15:15 UTC (History)
3 users (show)

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

An example of the bug. (10.59 KB, application/
2013-06-28 14:30 UTC, eric.edwards.msb
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description eric.edwards.msb 2013-06-28 14:30:53 UTC
Created attachment 80944 [details]
An example of the bug.

Create two text boxes and place text in them.
Create a style, say ">1".
Apply the style to said boxes.
Create a line.
Group the first box with the line, but leave the second box ungrouped.
Right-click on the page in the page pane.
Select copy.
Right click on the page pane.
Select paste. (You now have two pages that "should" be identical)
Modify the font size of the style.

Both text boxes on page 1 correctly update font size.  However, only the grouped text box on page 2 does.  The ungrouped box on page 2 has the font size directly formatted to it, even though it is just a copy of page 1.  The color and font face can be changed just fine, the font size is the only problem I found.

This makes it difficult to create a "base" image, then copy it out to multiple pages for derivations unless you know to group all your objects before copying.

I have attached a sample file with the issue, but you should be able to reproduce this on your own.

(P.S. by "OS: Other", I'm on a Windows server edition)
Comment 1 Joe Smith 2013-06-28 15:00:33 UTC
The copied page contains different xml for the ungrouped text box:

From page 1:

<draw:frame draw:style-name="_3e_1" ...>
    <text:p>Ungrouped text, style &gt;1</text:p>

From page 2:

<draw:frame draw:style-name="_3e_1" draw:text-style-name="P2" ...>
    <text:p>Ungrouped text, style &gt;1</text:p>

The copy has an extra attribute pointing to text style "P2", which specifies a font size of 14pt and seems to override whatever font size comes through the draw:style-name.

Format > Default Formatting will clear the added style.
Comment 2 eric.edwards.msb 2013-06-28 15:15:49 UTC
Yes it does.  I did not add the extra formatting, it was done so automatically when I copy-pasted page 1.

If you would like to reproduce, right click on page one in the page pane, then select copy, then right click again on the page pane and select paste.  Page 3 will have the same problem page 2 does, even though you are copying from page 1.

The two workarounds are selecting default formatting on each of the ungrouped text boxes (which can be a pain if you have a lot of them, and even more of a pain if you want to keep some of the direct formatting, like bold) or you can group all of your text boxes before copying, and then ungroup them after pasting.