Bug 143556 - FILESAVE DOCX drawing lockedCanvas is destroyed on save
Summary: FILESAVE DOCX drawing lockedCanvas is destroyed on save
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.1.5.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Shapes
  Show dependency treegraph
 
Reported: 2021-07-26 23:28 UTC by Regina Henschel
Modified: 2023-08-12 11:38 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
drawing in lockedCanvas (271.11 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2021-07-26 23:28 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2021-07-26 23:28:07 UTC
Created attachment 173868 [details]
drawing in lockedCanvas

Open a docx file which has a drawing in a lockedCanvas. Save the file to docx and open it in Word.
Notice, that the drawing it gone. You will in addition notice a significant decrease in file size.

You can find some files in bug reports here, for example
attachment 54251 [details] in bug 43641
attachment 129385 [details] in bug 104486
or from unit tests
strict-lockedcanvas.docx from /core/sw/qa/extras/ooxmlimport/data/
fdo78658.docx from /core/sw/qa/extras/ooxmlexport/data/

Do not confuse lockedCanvas (file <lc:lockedCanvas> in DML) with Drawing Canvas (file <wpc:wpc> in DML or editas="canvas" in VML). 
I don't know, how files with lockedCanvas can be produced from scratch with current MS Office. I have attached a reduced version from bug 104486.

It seems to be no regression but a missing feature. I cannot find any version where it works.
Comment 1 Dieter 2021-08-11 11:30:01 UTC
I confirm it with

Version: 7.2.0.1 (x64) / LibreOffice Community
Build ID: 32efc3b7f3a71cfa6a7fa3f6c208333df48656cc
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL


Steps to reproduce:
1. Open attachment 173868 [details]
2. Save as docx
3a. Open in Word => empty document
3b. Open in Writer => only text
Comment 2 QA Administrators 2023-08-12 03:05:46 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2023-08-12 11:38:17 UTC
Still a problem in Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: b3053b63c65372627c5fb4df6b4ddcd5e12e16f7
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: default; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded