| Summary: | FILEOPEN DOCX Grouped shapes have slightly different height/width | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | NISZ LibreOffice Team <libreoffice> |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | NEW --- | ||
| Severity: | normal | CC: | joaopauloag-freedesktop, nemeth, rb.henschel, xiscofauli |
| Priority: | medium | Keywords: | filter:docx |
| Version: | 4.2.0.4 release | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=150255 | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 136328 | ||
| Attachments: |
Example file from Word with two grouped shapes
Screenshot of the magenta shapes properties side by side in Word and Writer Screenshot of the white shapes properties side by side in Word and Writer |
||
|
Description
NISZ LibreOffice Team
2020-07-29 07:25:19 UTC
Created attachment 163719 [details]
Screenshot of the magenta shapes properties side by side in Word and Writer
Created attachment 163720 [details]
Screenshot of the white shapes properties side by side in Word and Writer
Reproduced in Version: 7.1.0.0.alpha0+ Build ID: bc44e0acef79a2c0d4f0504023be21bd78451214 CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded The corresponding attributes in ODF are style:rel-height and style:rel-width. LibreOffice has it implemented for a Frame. That has a UI to set it. It is written to file as direct attribute of the <draw:frame> element. LibreOffice can interpret these attributes for some kind of shapes as attributes of the <style:graphic-properties> element of a style. It works for a TextBox. That is a <draw:frame> element and from point of view of ODF not different to a Frame. It works too for legacy rectangle and oval and for polygons, but the shapes will be a little bit too large. LibreOffice has no UI to set it in these cases, but the attributes are available via API. LibreOffice cannot interpret these attributes for custom shapes. Therefore it fails with the example document. So a short-term solution could be, to import a shape as Frame in Writer, if it has a rectangular geometry, no shape rotation, no text rotation, and no special effects like shadow or glow. And long-term solution would be to implement these attributes for custom shapes too, correct the size, and bring the attributes to UI. A workaround could be to recalculate the shape size on import depending on the actual page size. *** Bug 150255 has been marked as a duplicate of this bug. *** |