Bug 243923 - Formatting is not preserved during copy-paste operations
Summary: Formatting is not preserved during copy-paste operations
Status: RESOLVED FIXED
Alias: None
Product: kword
Classification: Miscellaneous
Component: opendocument (show other bugs)
Version: git
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: Persona: Susan
Assignee: Thomas Zander
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 10:12 UTC by pratik
Modified: 2010-11-20 22:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pratik 2010-07-08 10:12:58 UTC
Version:           svn (using KDE 4.4.4) 
OS:                Linux

Copying a portion of text which has specific formatting and then pasting to some other block applies the formating of the clipboard content to the entire block.

Also, in certain situations when that doesn't happen, when copying a portion of text and pasting it in the same block multiple times, only the last paste retains the original formatting. All the previous pastes keep losing their formatting.

Reproducible: Always

Steps to Reproduce:
For the first problem:
1) Create two paragraphs of text with different formatting and colour
2) Copy a portion of text from the first paragraph
3) Paste it somewhere in the second paragraph

For the second problem:
1) Create two paragraphs of text
2) Change the formatting and colour of second paragraph
3) Copy a portion of text from first paragraph
4) Paste it repeatedly into the second paragraph

Actual Results:  
Formatting and colour are not preserved.

Expected Results:  
Formatting and colour of the pasted text as well as the block in which it is pasted should be preserved
Comment 1 Gerry Gavigan 2010-10-23 19:37:01 UTC
confirmed with opensuse 11.3 using cut-paste in kword 2.2.2 on kde 4.5.2
Comment 2 Gerry Gavigan 2010-10-23 21:16:35 UTC
Having just re-opened the document related to my comment above, the font formatting issue caused the apparent loss of five pages of text (no, it was a font colour issue) with only the initial paragraph remaining.

Resetting the font colour upset the font size.
Comment 3 Gerry Gavigan 2010-10-23 21:22:20 UTC
Further, I've just realised that I lost bold formatting but not underlining
Comment 4 Thomas Zander 2010-11-07 15:25:05 UTC
Pasting uses the odf loading code and just calls KoTextLoader::loadBody
from what I see this code is currently not able to insert text in the middle of a paragraph.