Bug 150545 - Incorrect handling of "Automatic" increment in gradient fill
Summary: Incorrect handling of "Automatic" increment in gradient fill
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.3.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Impress-Gradient
  Show dependency treegraph
 
Reported: 2022-08-22 14:09 UTC by Rafael Lima
Modified: 2023-07-01 13:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample ODP file (22.58 KB, application/vnd.oasis.opendocument.presentation)
2022-08-22 14:09 UTC, Rafael Lima
Details
Screenshot of initial shape (167.45 KB, image/png)
2022-08-22 14:14 UTC, Rafael Lima
Details
AUTOMATIC IS SELECTED (188.69 KB, image/png)
2022-09-11 06:30 UTC, Baskar
Details
AUTOMATIC IS NOT SELECTED IMAGE (189.05 KB, image/png)
2022-09-11 06:31 UTC, Baskar
Details
SHAPE REAPPEARED (133.01 KB, image/png)
2022-09-11 06:32 UTC, Baskar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2022-08-22 14:09:56 UTC
Created attachment 181951 [details]
Sample ODP file

Open attached ODP file with a sample shape. It has radial gradient fill, but its rendering shows some circles which are caused because the "Automatic" value for its gradient is not being used.

Now, follow these steps:
1) Open the file and notice the shape fill has circles inside it.
2) Right-click the shape and go to Area; notice that "Automatic" is selected
3) Don't change anything; simply click OK
4) Now the gradient looks good and "Automatic" is indeed applied
5) Now again, right-click the image and choose "Area"
6) Notice that now "Automatic" is NOT checked
7) Don't change anything; simply click OK
8) Now the gradient is wrong again and the circles reappear

It seems that opening the dialog is inverting the value of the "Automatic" checkbox without the user changing anything.

System info

Version: 7.3.5.2 / LibreOffice Community
Build ID: 30(Build:2)
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.3.5-0ubuntu0.22.04.1
Calc: threaded

Also repro with

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 4e2ce2a460458f17ee4360c45a2da2fc4b4d753e
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: threaded
Comment 1 Rafael Lima 2022-08-22 14:14:15 UTC
Created attachment 181952 [details]
Screenshot of initial shape

This is what I see when I first open the ODP file. Notice the gradient fill has circles in it which are caused by the lack of the "Automatic" option being enabled.
Comment 2 Baskar 2022-09-11 06:27:23 UTC
NOT REPRODUCED...

ENVIRONMENT: LibreOfficeDev-7.4.0.0.alpha0_2022-01-23-x86_64

VERSION: Linux Mint 20.3 Cinnamon
Comment 3 Baskar 2022-09-11 06:30:41 UTC
Created attachment 182361 [details]
AUTOMATIC IS SELECTED
Comment 4 Baskar 2022-09-11 06:31:50 UTC
Created attachment 182362 [details]
AUTOMATIC IS NOT SELECTED IMAGE
Comment 5 Baskar 2022-09-11 06:32:49 UTC
Created attachment 182363 [details]
SHAPE REAPPEARED
Comment 6 Ezinne 2022-10-17 14:10:03 UTC
Reproducible in:

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: f486d2220d5b51f422c8feca21c831e1c1d143d7
CPU threads: 4; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 7 Regina Henschel 2023-06-28 22:46:38 UTC
The wrong behavior of the checkbox should be fixed with https://cgit.freedesktop.org/libreoffice/core/commit/?id=48a9ade1dacc63e61cc9a5748f29119d1d01d841
Comment 8 Rafael Lima 2023-06-29 12:59:36 UTC
(In reply to Regina Henschel from comment #7)
> The wrong behavior of the checkbox should be fixed with
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=48a9ade1dacc63e61cc9a5748f29119d1d01d841

Hi Regina,

I've just tested with the latest master and all is working fine now. The "Automatic" flag is now properly synced.

Thanks for fixing this issue.

Tested with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 19fbd6862302065cdf490085d1a8fea49f73d6ca
CPU threads: 16; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL threaded