Skip to content

Issue #12089: Fix Fade visibility in Paint Dynamics Output Editor

Alx Sa requested to merge alxsa-dynamics-output-line into master

This patch attempts to resolve #12089 (closed).

The Fade curve is meant to use the widget's foreground color. The current code detects this by checking if the curve's predefined color has an alpha value of 0 - if it does, INPUT_COLOR (i) returns NULL and sends a NULL color variable to gimp_curve_view_set_curve ().

However, since the GeglColor port, the "color" variable is an empty GeglColor object rather than a pure NULL value. Thus, the line was always drawn with the default GeglColor value which is difficult to see in light mode.

This patch adds a tertiary conditional statement so that a pure NULL is sent if the alpha value is 0, rather than the color variable.

Merge request reports

Loading