Bug 143486 - FILEOPEN DOCX rectangle of diagram (SmartArt) is too wide
Summary: FILEOPEN DOCX rectangle of diagram (SmartArt) is too wide
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.1.2 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: OOXML-SmartArt
  Show dependency treegraph
 
Reported: 2021-07-21 17:32 UTC by Regina Henschel
Modified: 2024-09-18 15:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2021-07-21 17:32:47 UTC
Take attachment 173757 [details] from bug 142484 and compare it's rendering in LO and Word. Notice, that the rectangles are wider in LO than in Word.
You can also look at attachment 173758 [details], which show a screenshot with LO and Word side-by-side.
You can estimate the width of the rectangles by comparing them with the monospaced characters above them.
Comment 1 Roman Kuznetsov 2021-07-23 18:45:13 UTC
confirm in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: f6b9f671d128c989ce223d61d0d5d43ff1dc9fcb
CPU threads: 4; OS: Windows 6.1 Service Pack 1 Build 7601; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: CL
Comment 2 Regina Henschel 2022-10-29 12:31:31 UTC
The problem still exists in Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 17dfc9a9da009cc23d2222e3fb4e2cef9c97d581
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded

Reason of the problem is the way LibreOffice represents SmartArt. It introduces a shape for the background, which determines the overall size of the SmartArt group. The SmartArt has the wrap type "Wrap Through" in Word, which corresponds to "Contour" in LibreOffice. This "Wrap Through" considers the shapes of the SmartArt, not the nominal size of the SmartArt object. So the text flows to the edge of the shapes. Such behavior cannot be represented when the SmartArt is imported as group. We would need a new, special wrap mode for SmartArt objects.
Comment 3 Hossein 2023-01-30 10:09:52 UTC
Still reproducible with the latest LO 7.6 dev master:
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2478d4b1a4cec495f1bf68f1e62c01031cdeec86
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fa-IR (fa_IR); UI: en-US
Calc: threaded
Comment 4 Buovjaga 2024-09-18 15:31:53 UTC
Now the width of the colourful rectangles seems correct, but the height might be wrong and the whole object has unwanted left and right padding. In attachment 173758 [details] there was only left padding.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 36b988312ae8013deefcdf4800592230e7c95ad8
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 18 September 2024