Bug 149894 - Image with background in table cell, does not change scale
Summary: Image with background in table cell, does not change scale
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.0.3 release
Hardware: All All
: medium normal
Assignee: Hossein
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Writer-Tables Writer-Images
  Show dependency treegraph
 
Reported: 2022-07-07 12:23 UTC by Alexander
Modified: 2024-03-01 14:11 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
BAD in 7.3.4.2 (12.20 KB, image/png)
2022-07-07 12:24 UTC, Alexander
Details
GOOD in 7.2.7.2 (11.37 KB, image/png)
2022-07-07 12:24 UTC, Alexander
Details
Open in LibreOffice 7.2.7 and 7.3.4 and see the difference (28.90 KB, application/vnd.oasis.opendocument.text)
2022-07-08 12:31 UTC, Alexander
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander 2022-07-07 12:23:23 UTC
Description:
Image with background in table cell, does not change scale

Actual Results:
1.

Expected Results:
1.


Reproducible: Always


User Profile Reset: No



Additional Info:
1.
Comment 1 Alexander 2022-07-07 12:24:20 UTC
Created attachment 181151 [details]
BAD in 7.3.4.2
Comment 2 Alexander 2022-07-07 12:24:48 UTC
Created attachment 181152 [details]
GOOD in 7.2.7.2
Comment 3 Rafael Lima 2022-07-07 20:01:49 UTC
Hi Alexander, thanks for reporting.

Can you please share a sample file so we can try to reproduce the bug?
Comment 4 Alexander 2022-07-08 12:30:37 UTC
(In reply to Rafael Lima from comment #3)
> Hi Alexander, thanks for reporting.
> 
> Can you please share a sample file so we can try to reproduce the bug?

In the last column of the table, the figure, it must be scaled to the dimensions of the graph, as in the previously given pictures. Open in LibreOffice 7.2.7 and 7.3.4 and see the difference
Comment 5 Alexander 2022-07-08 12:31:45 UTC
Created attachment 181179 [details]
Open in LibreOffice 7.2.7 and 7.3.4 and see the difference
Comment 6 Alexander 2022-07-08 12:34:39 UTC
Such an error has already been encountered when switching from version to version, about 1.5 years ago
Comment 7 Rafael Lima 2022-07-08 17:37:32 UTC
I confirm the problem.

The file opens fine in 

Version: 7.2.5.2 / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded

But in LO 7.3 the background image does not scale as expected

Version: 7.3.3.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.3~rc2-0ubuntu0.21.10.1~lo1
Calc: threaded

The problem also appears in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: d2dfc0c4286057f5d8dda178817de3503c3a7d29
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded
Comment 8 raal 2022-07-09 21:41:27 UTC
This seems to have begun at the below commit.
Adding Cc: to Hossein; Could you possibly take a look at this one?
Thanks
 468a1b656c212ad985484c3c862e7c0aed51df59 is the first bad commit
commit 468a1b656c212ad985484c3c862e7c0aed51df59
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Mon Sep 27 22:19:54 2021 +0200

    source 5e4e1cdb1e14354b42838e1dfcf82873b3071896

https://git.libreoffice.org/core/+/5e4e1cdb1e14354b42838e1dfcf82873b3071896
  tdf#88163 Fix font size for placeable wmf files
Comment 9 Hossein 2022-07-11 01:09:54 UTC
If you right click on the cell, then go to: Table Properties > Background > Image > Style and set it to "Stretched", you will get the desired result.

In the file, I see that it is set to "Custom position/size".

On the other hand, I read these dimensions in LO 7.2:

Width: 239.44 pt
Height: 27.81 pt

But I read these dimensions in LO 7.3

Width: 2,031.99 pt
Height: 236.81 pt
Comment 10 Alexander 2022-08-02 06:00:20 UTC
7.4.0.2 the mistake remains not corrected
Comment 11 Alexander 2022-09-17 16:38:39 UTC Comment hidden (spam)
Comment 12 Alexander 2022-10-17 05:22:46 UTC Comment hidden (spam)
Comment 13 Alexander 2023-02-03 14:00:52 UTC
7.5.0.3 the mistake remains not corrected
Comment 14 Alexander 2023-12-06 05:38:38 UTC
The developers probably missed this bug with pictures in wmf format. It's a pity.
Comment 15 Aron Budea 2024-03-01 10:25:31 UTC
Let's keep version field as earliest known version.

Alexander, I assume you change meant that bug is still present in version 24.2.1.2.
Comment 16 Alexander 2024-03-01 14:11:43 UTC
(In reply to Aron Budea from comment #15)
> Let's keep version field as earliest known version.
> 
> Alexander, I assume you change meant that bug is still present in version
> 24.2.1.2.

Yes, For almost 2 years they have not been able to fix