Bug 291117

Summary: images in header/footer change on saving
Product: [Applications] calligrawords Reporter: T Zachmann <t.zachmann>
Component: generalAssignee: Calligra Words Bugs <calligra-words-bugs-null>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Document which can be used for debugging

Description T Zachmann 2012-01-10 05:17:12 UTC
Created attachment 67634 [details]
Document which can be used for debugging

Version:           unspecified (using Devel) 
OS:                Linux

When saving the attached document and loading it again the images in the header and footer are no longer as they was on first loading but have been changed to the first image in the document.

Reproducible: Didn't try

Steps to Reproduce:
Load the attached document
Save the document
Load the saved document

Actual Results:  
The images in the header and footer have changed after loading to the first image in the document

Expected Results:  
The images after save/load should be the same as after the first load.
Comment 1 T Zachmann 2012-01-10 05:20:21 UTC
Git commit d17540bb6b6e21c495ebde910893db48a97ffb5e by Thorsten Zachmann.
Committed on 10/01/2012 at 06:15.
Pushed by zachmann into branch 'master'.

Use the same context on saving headers

This is needed as otherwise e.g. the created image names will be the same and
as the data centers for the temporary context are not saved the images in header/footer
suddenly are the same as the onces in the documents.
This fixes bug 291117 - images in header/footer change on saving

M  +34   -27   words/part/KWOdfWriter.cpp
M  +3    -2    words/part/KWOdfWriter.h

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