Hello! I have encountered the following problem today: I opened a .docx document containing an image in LibreOffice Wrier 3.5.0beta2 and saved as .odt. After that I opened this new file in Writer and saw that an extra image (the copy of the one that had been there before) appeared in the top left corner of the page.
Created attachment 55414 [details] random docx file with image
Created attachment 55415 [details] file produced in LibO 3.5.0 beta 1 reproduced in LibO 3.5.0 beta 1 on Fedora 64 bit
Already [Reproducible] with "LibreOffice 3.3.3 German UI/Locale [OOO330m19 (Build:301) tag libreoffice-3.3.3.1] on German WIN7 Home Premium (64bit) and OOo 3.2-dev, so inherited from OOo. Can be easily reproduced with an own document: 1. open new Writer Document from LibO start center 2. insert unlinked.jpg by menu 'Insert -> Picture -> From File' > Picture will be visible at top left corner of the document 2.1 I increased size, but I doubt that that will matter 3. Save as document1.odt, close 4. Reopen document1.odt: > Looks fine 5. Save as document2.docx (MSO2007), close 6. Reopen document2.docx > Looks fine 7. Save as document3.odt, close 8. Reopen document3.odt: Bug: 2 identical pictures, new one does not respect margins Still [Reproducible] with parallel installation of Master "LOdev " 3.7.0.0.alpha0+ - WIN7 Home Premium (64bit) ENGLISH UI [Build ID: 8d39b7]" (tinderbox: W2008R2@16-minimal_build, pull time 2012-06-20 04:38:46) Might be related to Bug 47527 @Cédric: Please set Status to ASSIGNED and add yourself to "Assigned To" if you accept this Bug.
just adding myself as QA so that we can easily query this. Confirmed with 3.6.2.1
taking it
Cedric Bosdonnat committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=f1fc7c5655dde547b721b3afffabcd8bdbe0add2 fdo#44278: fix leaked image when import docx The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
fixed
Thanks for fixing this bug
The usual question ;-): Is it possible to backport this to the 3.6.x branch? It would be nice to have the fix there, too, and not only in 3.7 which is still months away for “ordinary” users ...
Cedric Bosdonnat committed a patch related to this issue. It has been pushed to "libreoffice-3-6": http://cgit.freedesktop.org/libreoffice/core/commit/?id=9e553fcf085149dcaec15541278d910e59b04676&g=libreoffice-3-6 fdo#44278: fix leaked image when import docx It will be available in LibreOffice 3.6.3. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Verified in LO 3.6.3.2 Thank you very much.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/2316e21b2c6f3d1f18613408a8deb41af17c03bb tdf#44278: sw_ooxmlexport16: Add unittest It will be available in 7.3.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.