Bug 137642 - FILEOPEN DOCX VML shapes with vertical position relative to top margin positioned incorrectly
Summary: FILEOPEN DOCX VML shapes with vertical position relative to top margin positi...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Szabolcs Toth
URL:
Whiteboard: target:7.1.0
Keywords: filter:docx
Depends on:
Blocks: VML-Shapes
  Show dependency treegraph
 
Reported: 2020-10-21 07:09 UTC by NISZ LibreOffice Team
Modified: 2020-10-30 11:00 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Word (12.85 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-10-21 07:09 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document and the green shapes properties side by side in Word and Writer (111.37 KB, image/png)
2020-10-21 07:09 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2020-10-21 07:09:21 UTC
Created attachment 166565 [details]
Example file from Word

This is followup to bug #103611 and bug #133045 
Attached file contains some VML shapes minimized from the attachment #128390 [details] of bug #103611.
When opened in Writer these shapes are incorrectly positioned vertically.

Steps to reproduce:
    1. Open attached document

Actual results:
Shapes appear vertically at the top of the visible page area instead of in the top margin.

Expected results:
Vertical alignments top-center-bottom relative to top margin like in Word.

LibreOffice details:
Version: 7.1.0.0.alpha0+ (x64)
Build ID: e0c72e31c1d455c26110c35e8780d420e17cdea6
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 1 NISZ LibreOffice Team 2020-10-21 07:09:41 UTC
Created attachment 166566 [details]
Screenshot of the original document and the green shapes properties side by side in Word and Writer
Comment 2 Commit Notification 2020-10-30 10:54:33 UTC
Szabolcs Toth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/799522882159b839cc7aeec2fbc48f767507a30c

tdf#137642 VML shape import: fix alignment from top margin

It will be available in 7.1.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.