Bug 291117 - images in header/footer change on saving
Summary: images in header/footer change on saving
Status: RESOLVED FIXED
Alias: None
Product: calligrawords
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR major
Target Milestone: ---
Assignee: Calligra Words Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 05:17 UTC by T Zachmann
Modified: 2012-01-10 05:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Document which can be used for debugging (47.01 KB, application/vnd.oasis.opendocument.text)
2012-01-10 05:17 UTC, T Zachmann
Details

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