Bug 275990

Summary: copying text within a table duplicates whole table instead of the text
Product: [Applications] calligrawords Reporter: Cyril Brosch <info>
Component: generalAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: cbo, mail, sebsauer
Priority: HI    
Version: Git   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: document with table inserted wrongly

Description Cyril Brosch 2011-06-18 18:24:43 UTC
Created attachment 61119 [details]
document with table inserted wrongly

Version:           2.4-snapshots (using KDE 4.6.4) 
OS:                Linux

Have a look at the attached document. I marked and copied a word from one cell and inserted it in an empty one. Instead of copying the single word (e.g. "bold"), Words inserted the whole table into the empty cell. It's inertable ad infinitum.

Reproducible: Always
Comment 1 Sebastian Sauer 2011-06-26 11:02:11 UTC
Confirmed.
Comment 2 Sebastian Sauer 2011-09-28 13:13:54 UTC
Fixed with 76084e245c9f4251a49b091c21ad1c10b6453710
Comment 3 Camilla Boemann 2015-03-29 14:32:53 UTC
Git commit 3e5052b560d8cdf5ccfdd40101dc16363e31af0b by C. Boemann.
Committed on 29/03/2015 at 13:37.
Pushed by boemann into branch 'calligra/2.9'.

When copying two tables we would get a crash as we were assuming it was all one table.
But trying to fix that it turns out we had a bigger issue. We couldn't copy a part of a table,
so I fixed that instead keeping in mind that we could have selected more than on table.
Related: bug 330284

M  +13   -27   libs/kotext/opendocument/KoTextWriter.cpp
M  +17   -6    libs/kotext/opendocument/KoTextWriter_p.cpp
M  +1    -1    libs/kotext/opendocument/KoTextWriter_p.h

http://commits.kde.org/calligra/3e5052b560d8cdf5ccfdd40101dc16363e31af0b