Bug 112312 - FILESAVE Shape with text is incorrectly exported to DOCX
Summary: FILESAVE Shape with text is incorrectly exported to DOCX
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:docx, regression
Depends on:
Blocks: OOXML-Shapes DOCX
  Show dependency treegraph
 
Reported: 2017-09-10 22:40 UTC by Aron Budea
Modified: 2019-10-09 18:17 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample ODT, save as DOCX (10.86 KB, application/vnd.oasis.opendocument.text)
2017-09-10 22:40 UTC, Aron Budea
Details
Screenshot (71.66 KB, image/png)
2017-09-10 22:43 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2017-09-10 22:40:23 UTC
Created attachment 136157 [details]
Sample ODT, save as DOCX

Open the attached ODT, containing a shape with a piece of text inside.
Save it as DOCX.
Reopen the DOCX.

=> The shape is squashed, and separated from the text.

Observed using LO 5.4.1.2 & 4.3.0.4 / Windows 7.
Somewhat better in LO 4.2.0.4: the shape frame is different and text position is incorrect in the exported DOCX.
=> let's consider it a regression
Comment 1 Aron Budea 2017-09-10 22:43:48 UTC
Created attachment 136158 [details]
Screenshot
Comment 2 Aron Budea 2017-09-10 22:46:19 UTC
(In reply to Aron Budea from comment #0)
> Somewhat better in LO 4.2.0.4: the shape frame is different and text
> position is incorrect in the exported DOCX.
What I mean is, otherwise the shape is the same size, and the text is inside the shape.
Comment 3 Aron Budea 2017-09-11 03:19:38 UTC
This is the range, bibisected using bibisect-43max:
https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=562b21949f4ed986d11270bd6203741487795343..1542a655ea21da4cdcd4b836283e44fba5f35059

There are all kinds of crashes when bibisecting further.
Comment 5 Xisco Faulí 2017-09-12 23:49:35 UTC
Same range of commits as in bug 109171. Adding to see also just in case...
Comment 6 QA Administrators 2018-09-13 02:40:58 UTC Comment hidden (obsolete)
Comment 7 Roman Kuznetsov 2018-09-13 06:58:58 UTC
still present in 

Версия: 6.1.1.1
ID сборки: 2718b4a18dfcc6a54ebe5f7b801ee7a47fa81e0c
Потоков ЦП: 4; ОС:Windows 6.1; Отрисовка ИП: по умолчанию; 
Локаль: ru-RU (ru_RU); Calc: group threaded
Comment 8 Buovjaga 2019-04-14 13:03:28 UTC
Bibisected with win32-4.3 to https://gerrit.libreoffice.org/plugins/gitiles/core/+/cfb5b20cdc230320ff9f864d1cfd81aaea221da0%5E!/
DocxAttributeOutput::OutputFlyFrame_Impl: enable DML export by default

Also blamed for bug 122962
Comment 9 Regina Henschel 2019-10-09 18:17:51 UTC
The shape is a legacy rectangle. It does not have the ability to resize to content. Therefore LibreOffice should output an element "<a:noAutofit/>", but it writes "<a:spAutofit/>".