<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>403876</bug_id>
          
          <creation_ts>2019-02-02 21:52:26 +0000</creation_ts>
          <short_desc>Gradient for the outline change the color of the fill of the shape</short_desc>
          <delta_ts>2019-02-03 12:36:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Tools/Vector</component>
          <version>4.1.7</version>
          <rep_platform>Microsoft Windows</rep_platform>
          <op_sys>Microsoft Windows</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>399127</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Tiar">tamtamy.tymona</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>freebox64</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1835439</commentid>
    <comment_count>0</comment_count>
    <who name="Tiar">tamtamy.tymona</who>
    <bug_when>2019-02-02 21:52:26 +0000</bug_when>
    <thetext>SUMMARY
For vector shape tools (checked tools: Rectangle Tool, Polygon Tool) when you fill the outline with a gradient, the color of the gradient change also the current Background color, which leads to the change of the fill of the shape.

STEPS TO REPRODUCE
1. Choose two different colors for background and foreground colors.
2. Create a new shape.
3. Select the Select Shapes Tool. 
4. Select the shape.
5. In Tool Options change the color of the outline to gradient (it helps if the gradient presented there has a distinctive color; to achieve this without influencing the current triaging, just do step 5., deselect the shape, change the color of the gradient to something like hot pink or hot green and start with step 1. again).
5a. Make sure the gradient preset chosen is the simple &quot;Foreground color to transparency&quot;. It&apos;s also important to make sure that the color of the saved gradient (the color presented below the line, not above) is different from the current fill color.
6. If you don&apos;t see the result yet, change it to the Solid color and then again to the Gradient.

OBSERVED RESULT
Foreground color change to the color of the gradient.
The fill of the shape is changed to the foreground color ( = color of the gradient).
Note: after changing the color of the line to &quot;Solid&quot; again, the fill color doesn&apos;t change to the correct, previous color (as it was before changing to Gradient).

EXPECTED RESULT
No change in the fill of the shape.
(Change in the Foreground color doesn&apos;t matter to me, but it clearly trigger the change in the fill which is undesired).

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
You need to do 2 undos to undo this change: first undo changes the fill color to the correct, previous color, the second undo changes the outline to the Solid color again.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835537</commentid>
    <comment_count>1</comment_count>
    <who name="mvowada">freebox64</who>
    <bug_when>2019-02-03 11:45:24 +0000</bug_when>
    <thetext>Hi Tymond,

it sounds like Bug 399127. Is it the same issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835544</commentid>
    <comment_count>2</comment_count>
    <who name="Tiar">tamtamy.tymona</who>
    <bug_when>2019-02-03 12:36:09 +0000</bug_when>
    <thetext>Yes, of course. I don&apos;t know how I missed that.

*** This bug has been marked as a duplicate of bug 399127 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>