[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [krita/eingerman/T3589-healbrush] plugins/tools/tool_smart_patch: Removed default pixel for mask. Re
From:       Eugene Ingerman <null () kde ! org>
Date:       2017-05-04 3:50:44
Message-ID: E1d67mu-0005uU-Tg () code ! kde ! org
[Download RAW message or body]

Git commit 0f90ae0d0d051995a042fe5358d952770b3f98b7 by Eugene Ingerman.
Committed on 04/05/2017 at 03:50.
Pushed by eingerman into branch 'eingerman/T3589-healbrush'.

Removed default pixel for mask. Ref T3589

M  +0    -4    plugins/tools/tool_smart_patch/kis_inpaint.cpp

https://commits.kde.org/krita/0f90ae0d0d051995a042fe5358d952770b3f98b7

diff --git a/plugins/tools/tool_smart_patch/kis_inpaint.cpp \
b/plugins/tools/tool_smart_patch/kis_inpaint.cpp index da6471a138b..cace89370e5 \
                100644
--- a/plugins/tools/tool_smart_patch/kis_inpaint.cpp
+++ b/plugins/tools/tool_smart_patch/kis_inpaint.cpp
@@ -967,11 +967,7 @@ void \
NearestNeighborField::ExpectationStep(NearestNeighborFieldSP nnf, MaskedIma  
 QRect getMaskBoundingBox(KisPaintDeviceSP maskDev)
 {
-    KoColor defaultMaskPixel = maskDev->defaultPixel();
-    maskDev->setDefaultPixel(KoColor(Qt::white, maskDev->colorSpace()));
     QRect maskRect = maskDev->nonDefaultPixelArea();
-    maskDev->setDefaultPixel(defaultMaskPixel);
-
     return maskRect;
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic