Bug 70060 - FILESAVE: character-anchored shapes not exported to docx
Summary: FILESAVE: character-anchored shapes not exported to docx
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.0.alpha0+ Master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 46056 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-03 07:25 UTC by Jacobo Aragunde Pérez
Modified: 2014-05-19 13:26 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test case (7.56 KB, application/vnd.oasis.opendocument.text)
2013-10-03 07:25 UTC, Jacobo Aragunde Pérez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jacobo Aragunde Pérez 2013-10-03 07:25:23 UTC
Created attachment 87016 [details]
Test case

Steps to reproduce:

1. Open attached document. Notice it contains one shape with anchor "as character".
2. Save as a .docx document.
3. Close and open the .docx you just saved. The document is empty.

It also happens with groups of shapes anchored "as character", but it doesn't if the anchor type is different.

Notice that this is the actual cause of imported docx SmartArt being removed from the documents when exported back (#64491).
Comment 1 Thomas van der Meulen [retired] 2013-10-24 12:06:07 UTC
Seems to work in master but wen you open that file it doesn't work see comment 10 in bug 64491

*** This bug has been marked as a duplicate of bug 64491 ***
Comment 2 Andrés Gómez García 2013-10-24 12:14:28 UTC
This is not a duplicate.

As stated in the description it also happens with no-SmartArt content.
Comment 3 Jacobo Aragunde Pérez 2013-10-30 09:10:16 UTC
I've noticed that the issue is fixed by this pending change:

https://gerrit.libreoffice.org/6366

The anchor type is changed from "as character" to "to paragraph", but at least there is no data loss, that's good news. Besides I get no error when opening the generated .docx with Office 2007.

I'll wait for the change to be merged and then I'll close this bug and open a new one for the anchor types if still needed.
Comment 4 Jorendc 2014-04-21 23:41:28 UTC
(In reply to comment #3)
> I've noticed that the issue is fixed by this pending change:
> 
> https://gerrit.libreoffice.org/6366
> 
> The anchor type is changed from "as character" to "to paragraph", but at
> least there is no data loss, that's good news. Besides I get no error when
> opening the generated .docx with Office 2007.

Looks indeed fixed, tested using Mac OSX 10.9 with LibreOffice Version: 4.3.0.0.alpha0+
Build ID: 619b4c40da9e85febbb08a3f7cf8aa8d10963fc1
TinderBox: MacOSX-x86@49-TDF, Branch:master, Time: 2014-04-18_00:07:53 and Word for Mac 2011.
 
> I'll wait for the change to be merged and then I'll close this bug and open
> a new one for the anchor types if still needed.

This is bug 37002 :-).

Kind regards,
Joren
Comment 5 Jorendc 2014-04-21 23:44:29 UTC
*** Bug 46056 has been marked as a duplicate of this bug. ***
Comment 6 Timur 2014-05-19 13:26:44 UTC
Can this be ported to 4.2?