Bug 133525 - Page Style > Area > Gradient: Increment value not saved with document
Summary: Page Style > Area > Gradient: Increment value not saved with document
Status: RESOLVED DUPLICATE of bug 107787
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-30 12:52 UTC by R. Green
Modified: 2021-05-07 09:05 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Writer doc. showing problem with area gradient dialog (88.94 KB, application/vnd.oasis.opendocument.text)
2020-05-30 12:52 UTC, R. Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2020-05-30 12:52:31 UTC
Created attachment 161427 [details]
Writer doc. showing problem with area gradient dialog

Version: 6.4.4.2 (x64)
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: en-GB (en_GB); UI-Language: en-GB
Calc: threaded

1. Open the attached document. Notice the background pattern created in the Gradient section of Page Style > Area. The important thing is that the "Increment" value was previously set to 7.

2. Open "Page style > Area > Gradient" and check the "Increment" value.

EXPECTED RESULT: Should be "7", and the "Automatic" box should be UNCHECKED.
ACTUAL RESULT: The "Automatic" box is checked and the value has returned to the default of "64". The graphical thumbnail also reflects this incorrect figure.

3. Untick "Automatic", reset the "Increment" value to 7 and exit. Then close the file.
4. Open the file and inspect "Page style > Area > Gradient" again.

RESULT: The same problem has recurred. The underlying setting is correct but the DISPLAY is not.
Comment 1 Julien Nabet 2020-05-30 21:58:04 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

Regina: trying to save different values related to gradient in the file and unzipping it, I noticed there were no attribute concerning increment.
Indeed, styles.xml contains this line:
     <draw:gradient draw:name="Gradient_20_4" draw:display-name="Gradient 4" draw:style="rectangular" draw:cx="76%" draw:cy="77%" draw:start-color="#ffd7d7" draw:end-color="#b4c7dc" draw:start-intensity="95%" draw:end-intensity="90%" draw:angle="34deg"
    draw:border="35%" />

Is "increment" attribute a kind of extension to ODF?
Comment 2 Regina Henschel 2020-05-31 00:32:54 UTC
(In reply to Julien Nabet from comment #1)
> On pc Debian x86-64 with master sources updated today, I could reproduce
> this.
> 
> Regina: trying to save different values related to gradient in the file and
> unzipping it, I noticed there were no attribute concerning increment.
> Indeed, styles.xml contains this line:
>      <draw:gradient draw:name="Gradient_20_4" draw:display-name="Gradient 4"
> draw:style="rectangular" draw:cx="76%" draw:cy="77%"
> draw:start-color="#ffd7d7" draw:end-color="#b4c7dc"
> draw:start-intensity="95%" draw:end-intensity="90%" draw:angle="34deg"
>     draw:border="35%" />
> 
> Is "increment" attribute a kind of extension to ODF?

No, it is ODF. But "increment" does not belong to the gradient definition in <draw:gradient>, but it is a property of the object itself. Therefore it is in the automatic-style of the object in the attribute draw:gradient-step-count.
For a page you get in LO7.0 (ODF 1.3) for example:
<style:drawing-page-properties draw:fill="gradient" draw:fill-gradient-name="yellow2blue30deg" draw:gradient-step-count="7" draw:background-size="full"/>

LO6 is faulty in writing gradients for pages.

The error here is, that the dialog does not mirror the values of the master-page, if it opens for a page. It does mirror the value if it is opened on shapes.
Comment 3 Timur 2021-05-07 09:05:32 UTC
I didn't really read all, but looks duplicate. Please explain if not.

*** This bug has been marked as a duplicate of bug 107787 ***