Bug 70060

Summary: FILESAVE: character-anchored shapes not exported to docx
Product: LibreOffice Reporter: Jacobo Aragunde Pérez <jaragunde>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: jorendc, lambaerts.dom, pje335-lo
Version: 4.2.0.0.alpha0+ Master   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Test case

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 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?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.