Bug 274064 - Corrupted odp file after removing slides
Summary: Corrupted odp file after removing slides
Status: RESOLVED FIXED
Alias: None
Product: calligrastage
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: T Zachmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 22:05 UTC by Alex Fiestas
Modified: 2011-05-25 06:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

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