Bug 274064

Summary: Corrupted odp file after removing slides
Product: [Applications] calligrastage Reporter: Alex Fiestas <afiestas>
Component: generalAssignee: T Zachmann <t.zachmann>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alex Fiestas 2011-05-24 22:05:16 UTC
Version:           unspecified
OS:                Linux

The other day I used a odp file as a base for my presentation for akademy-es, after removing some "trailing sldies" and save the file, I realized that the file was corrupted (because of the saving), and I couldn't open it anymore with any software.

This could by reproduced by doing:
1-Download kubuntu-friendly.odp from demo files
2-Open it
3-Remove all slides but the 2 firsts
4-Save the document
5-Try to open it again

Thanks!

Reproducible: Didn't try
Comment 1 T Zachmann 2011-05-25 06:43:49 UTC
Git commit f4fe4b16111e783dcf554a534d849607e3507d8f by Thorsten Zachmann.
Committed on 25/05/2011 at 06:27.
Pushed by zachmann into branch 'master'.

Make sure to produce valid xml

Close the tag that are opened. Always use the same machanism for closing the tags.
Therefore also insert empty tags into the stack.

This fixes bug 274064 - Corrupted odp file after removing slides.
Actually the removing of the slides is not needed th reproduces the problem.
Saving the file is enough.

BUG: 274064

M  +10   -11   libs/kotext/opendocument/KoTextWriter.cpp     

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