Bug 160940 - Some shapes were wrongly imported from CDR files by Government of Serbia (shifted object)
Summary: Some shapes were wrongly imported from CDR files by Government of Serbia (shi...
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: libcdr (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Format-Filters
  Show dependency treegraph
 
Reported: 2024-05-05 06:58 UTC by Volga
Modified: 2024-05-20 14:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
The original file opened with Corel DRAW (147.28 KB, image/png)
2024-05-05 06:59 UTC, Volga
Details
The same files opened by LibreOffice Draw (161.42 KB, image/png)
2024-05-05 07:01 UTC, Volga
Details
sample CDR from linked resources (196.86 KB, application/vnd.corel-draw)
2024-05-20 11:52 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volga 2024-05-05 06:58:14 UTC
Description:
The Government of Serbia published some CDR samples for its national symbols, but they have some problem in LibreOffice Draw.

Steps to Reproduce:
1. Open drzavna zastava RS.cdr

Actual Results:
Some shapes shifted away from the crown, while some strokes on white eagle looks gray instead of black.

Expected Results:
All shapes should looks as expected in LibreOffice Draw.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); UI: zh-CN
Calc: threaded

File source: https://www.srbija.gov.rs/tekst/en/130128/national-symbols.php
Comment 1 Volga 2024-05-05 06:59:53 UTC
Created attachment 193970 [details]
The original file opened with Corel DRAW
Comment 2 Volga 2024-05-05 07:01:13 UTC
Created attachment 193971 [details]
The same files opened by LibreOffice Draw
Comment 3 Stéphane Guillou (stragu) 2024-05-20 11:52:48 UTC
Created attachment 194220 [details]
sample CDR from linked resources
Comment 4 Stéphane Guillou (stragu) 2024-05-20 12:31:18 UTC
I can reproduce in:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: d0702a3f17c1fbd1b8ffb9ca0b275943e1a1f442
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

The issue with some elements of the crown shifted is also seen in LO 6.0.0.3.

The issue with thinner lines on the bird appears later, in LO 7.0.

I bibisected it with linux-64-7.0 repo to first bad build [832d59a7ce81712178f9b2537ed6b0bf7a9ccd39] which points to:

commit dd117712bd5692f7bf3870ba91572a0bab54ab86
author	Armin Le Grand 	Thu Mar 05 19:24:30 2020 +0100
committer	Armin Le Grand 	Fri Mar 06 10:10:55 2020 +0100
tdf#124848 partial refactor hairline logic
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90057

Before commit, import into Draw look truer to original (CorelDRAW screenshot, renderings on website).
After commit, some shapes have much thinner lines.
However, the thicknesses were always different, and zooming in before the commit would also reveal the different thicknesses. So I'm unsure this actually is a bug, and I think this report should focus on the shifted crown issue. (It might already be covered by bug 133450 anyway.)