<?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>318007</bug_id>
          
          <creation_ts>2013-04-08 04:40:55 +0000</creation_ts>
          <short_desc>JJ: Fill background and foreground ignores alpha lock layer state.</short_desc>
          <delta_ts>2013-09-11 13:44:03 +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>Usability</component>
          <version>git master (please specify the git hash!)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>junior-jobs</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="vanyossi">ghevan</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          <cc>christer.stenbrenden</cc>
    
    <cc>halla</cc>
    
    <cc>sven.langkamp</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>1358399</commentid>
    <comment_count>0</comment_count>
    <who name="vanyossi">ghevan</who>
    <bug_when>2013-04-08 04:40:55 +0000</bug_when>
    <thetext>After locking alpha channel on a layer attempting to fill using menu &quot;edit &gt; Fill&quot; or keyboard shortcuts, fill the entire layer intead of just the opaque areas

Reproducible: Always

Steps to Reproduce:
1.Paint something on a new layer. I painted 2 filled circles
2.Lock the new layer alpha channel
3. Go to &quot;Edit &gt; Fill with background (or foreground) color&quot; Or press keyboard shortcut to fill layer with fg or bg color.
Actual Results:  
The entire layer fills with the color selected ignoring alpha channel

Expected Results:  
only painted areas should be filled with color.
The behavior im expecting can be achieved using the paint bucket tool and checking the &quot;Fill entire selection&quot; checkbox in the tool options.

I think this is extremely important for new adopters as this is common to do on some workflows.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1369589</commentid>
    <comment_count>1</comment_count>
    <who name="Halla Rempt">halla</who>
    <bug_when>2013-05-18 08:22:18 +0000</bug_when>
    <thetext>Ack,  I can confirm. Currently, fill background and fill foreground are very simple and just blit the color all over the layer (see KisSelectionActionFactories, void KisFillActionFactory::run(const QString &amp;fillSource, KisView2 *view)).

This should be changed to call the same code as the fill tool, I think. It&apos;s not hard, could even be a junior job.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1395313</commentid>
    <comment_count>2</comment_count>
    <who name="Christer Stenbrenden">christer.stenbrenden</who>
    <bug_when>2013-09-05 09:42:44 +0000</bug_when>
    <thetext>The fill tool uses code that&apos;s only residing inside the plugin, as far as I can tell, but the code behind &quot;Fill with foreground color&quot; etc. resides under ui/actions. I want to use the same Visitor implementation as the Fill Tool, but where should I put this common code? :-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>