Bug 275990 - copying text within a table duplicates whole table instead of the text
Summary: copying text within a table duplicates whole table instead of the text
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: Git
Platform: openSUSE Linux
: HI major
Target Milestone: ---
Assignee: Calligra Words Bugs
Depends on:
Reported: 2011-06-18 18:24 UTC by Cyril Brosch
Modified: 2015-03-29 14:32 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:

document with table inserted wrongly (4.87 KB, application/vnd.oasis.opendocument.text)
2011-06-18 18:24 UTC, Cyril Brosch

Note You need to log in before you can comment on or make changes to this bug.
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
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