Apache OpenOffice (AOO) Bugzilla – Issue 48434
Graphics disappear after saving as odt
Last modified: 2013-08-07 14:41:36 UTC
-open the attached sxw -scroll to page 10 - 11, notice the figures -save as odt -scroll all the way down to end -scroll back to page 10-11: The figures show as "read-error"
Created attachment 25642 [details] sample source file
first investigation reveals that the lost graphics are embedded metafiles. During save whose unique ID is re-calculated for the determination of a unique filename for the graphic file. The resulting graphic filename differs from the one in the source file. Thus, the Writer can't re-read the graphic filename again, because it uses the 'old' graphic filename. But, reload of the file brings back the embedded graphics. Following save action doesn't lose the graphic again. The cause of the different unique IDs for the embedded metafile could be (suggestion from THB), that we improved our metafile import and thus, have more/other information about the metafile as in OOo 1.1.x to generate the unique ID Note: issue 48108 is somehow related, because the same defect is shown, but it seems to be different defect causes. OD->MRU: Please set appropriate target and assign the issue to me, Thx.
Reassigned to OD. Targeted to OO 2.0.1 at first. Will discuss 2.0 target with TZ.
I've found a solution for the Writer code to workaround the changing embedded graphic filename: If original known embedded graphic filename doesn't exist in the document storage, try to determine the new embedded graphic filename. This could be done with the knowledge, that an embedded graphic file is stored with its unique ID in the document storage.
As discussed this MRU, target will stay on OOo 2.0.1
fixed in cws swqbugfixes30 - changed files: /sw/inc/ndgrf.hxx, 1.14.80.1 /sw/source/core/graphic/ndgrf.cxx, 1.28.64.1 Note: This fallback also functions as a workaround for the defect of issue 48108
OD->MRU: Checked in internal installation set of cws swqbugfixes30 - please verify. re-open issue and reassign to mru@openoffice.org
reassign to mru@openoffice.org
reset resolution to FIXED
Verified fix in CWS swqbugfixes30.
Reopen, because cws swqbugfixes30 will be canceled. Fix will be integrated into cws swqbf34.
fixed in cws swqbf34 - changed files: /sw/inc/ndgrf.hxx, 1.14.156.1 /sw/source/core/graphic/ndgrf.cxx, 1.29.84.1
fix reviewed by FME.
OD->MRU: Checked in internal installation of cws swqbf34 - please verify.
Corrected "Target Milestone" to OO 2.0.
Verified fix in CWS swqbf34.
Checked fix in 680m119 build.