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

List:       kde-commits
Subject:    koffice/krita/plugins/filters/colorsfilters
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2008-11-07 20:15:21
Message-ID: 1226088921.713180.23903.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 881333 by berger:

don't assume there the adjustement is still valid between two calls to the birghtness \
contrast filter, because it's obviously not always the case

BUG: 173584

 M  +4 -3      kis_brightness_contrast_filter.cc  


--- trunk/koffice/krita/plugins/filters/colorsfilters/kis_brightness_contrast_filter.cc \
#881332:881333 @@ -216,9 +216,9 @@
         gc.end();
     }
 
-    if (configBC->m_adjustment == 0) {
+//     if (configBC->m_adjustment == 0) {
         configBC->m_adjustment = \
                src->colorSpace()->createBrightnessContrastAdjustment(configBC->transfer);
                
-    }
+//     }
 
     KisRectIteratorPixel iter = dst->createRectIterator(srcTopLeft.x(), \
srcTopLeft.y(), size.width(), size.height(), dstInfo.selection());  
@@ -268,7 +268,8 @@
         }
         if (progressUpdater) progressUpdater->setProgress(pixelsProcessed / \
totalCost);  }
-
+    delete configBC->m_adjustment;
+    configBC->m_adjustment = 0;
 }
 
 KisBrightnessContrastConfigWidget::KisBrightnessContrastConfigWidget(QWidget * \
parent, KisPaintDeviceSP dev, Qt::WFlags f)


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

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