Bug 359700 - Additional table is inserted after reopening document
Summary: Additional table is inserted after reopening document
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: opendocument (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-23 12:32 UTC by laszlopasztor25
Modified: 2016-03-26 15:29 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 3.0


Attachments
Before saving (46.42 KB, image/png)
2016-02-23 12:43 UTC, laszlopasztor25
Details
After reopening (57.98 KB, image/png)
2016-02-23 12:44 UTC, laszlopasztor25
Details

Note You need to log in before you can comment on or make changes to this bug.
Description laszlopasztor25 2016-02-23 12:32:23 UTC
Inserting a table to the first cell of a table causes inserting an extra table after saving and loading the document back.

Reproducible: Always

Steps to Reproduce:
1. Create a table.
2. Insert a table to the first cell of the previously created table.
3. Save the document. 
4. Close Words. 
5. Open Words with saved document.

Actual Results:  
An additional table is inserted before the first table-

Expected Results:  
Number of tables should be the same after saving-
Comment 1 laszlopasztor25 2016-02-23 12:43:48 UTC
Created attachment 97374 [details]
Before saving
Comment 2 laszlopasztor25 2016-02-23 12:44:57 UTC
Created attachment 97375 [details]
After reopening
Comment 3 Camilla Boemann 2016-02-27 10:58:56 UTC
Don't expect fix before 3.0
Comment 4 Camilla Boemann 2016-03-26 15:29:04 UTC
Git commit e2ef9c43498165466cbec52509b834e026539fc5 by C. Boemann.
Committed on 26/03/2016 at 13:23.
Pushed by boemann into branch 'master'.

Make sure we save nested tables correctly - ToC or hiddenByTable would make us skip the table, only to save
it in the next block messing everything up.
Unfortunately we still have a bug loding nested tables as we don't seem to hide the hiddenparagraph of an inner table
FIXED-IN: 3.0

M  +10   -9    libs/text/opendocument/KoTextWriter_p.cpp

http://commits.kde.org/calligra/e2ef9c43498165466cbec52509b834e026539fc5