Bug 141194 - Regression: LibO >= 7.0 mismanages crop information, 6.4 OK
Summary: Regression: LibO >= 7.0 mismanages crop information, 6.4 OK
Status: RESOLVED DUPLICATE of bug 133546
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected) release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
Keywords: bibisected, bisected, regression
Depends on:
Reported: 2021-03-23 09:49 UTC by Callegar
Modified: 2021-12-06 04:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:

Test case (232.70 KB, application/vnd.oasis.opendocument.presentation)
2021-03-23 09:50 UTC, Callegar
Comparison before and after (220.94 KB, image/png)
2021-03-23 10:19 UTC, Xisco Faulí
Intended result (145.33 KB, image/png)
2021-03-23 11:09 UTC, Callegar

Note You need to log in before you can comment on or make changes to this bug.
Description Callegar 2021-03-23 09:49:12 UTC
An impress presentation with a slide containing a cropped and scaled image opens incorrectly with LibO 7.0 and 7.1, while it opens fine on LibO 6.4.

The issue seems to be with reading the file. During edit, LibO 7.0, 7.1 do the cropping and scaling fine. When you save the presentation and you reload it, the cropped image is OK with 6.4 but wrong and distorted with LibO 7.0 and 7.1. The weird thing is that in the crop dialog the info provided by LibO 6.4 and 7.x is the same.

Please try the test document.

Marking version as first affected, being the 7.0 version that I have tried, but I believe that this has been present from the beginning of 7.0.

Steps to Reproduce:
Open test document in LibO 6.4 and LibO 7.x and check the differences.

Actual Results:
Cropped image is distorted in 7.x

Expected Results:
Image should look correctly and not distorted.

Reproducible: Always

User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: PresentationDocument
[Information guessed from browser]
OS: Linux (All)
OS is 64bit: yes
Comment 1 Callegar 2021-03-23 09:50:16 UTC
Created attachment 170652 [details]
Test case
Comment 2 Xisco Faulí 2021-03-23 10:19:04 UTC
Created attachment 170653 [details]
Comparison before  and after
Comment 3 Xisco Faulí 2021-03-23 10:29:03 UTC
This regression was introduced by https://cgit.freedesktop.org/libreoffice/core/commit/?id=6ac2d66c78d6c080aabfa46157113684c2f3a3b0
Already reported by you in bug 133546

*** This bug has been marked as a duplicate of bug 133546 ***
Comment 4 Callegar 2021-03-23 11:07:00 UTC
Incredible how I can miss my own duplicates... thought this one was a different item, crop specific.

In any case, a weird thing is how even on 6.4 my rendering is different from yours.

I am attaching that too, even if the bug is closed, just in case someone from bug #133546 comes here to check the test case.
Comment 5 Callegar 2021-03-23 11:09:46 UTC
Created attachment 170655 [details]
Intended result