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

List:       kde-commits
Subject:    koffice/filters/krita
From:       Cyrille Berger <cyb () lepi ! org>
Date:       2007-07-31 22:06:02
Message-ID: 1185919562.052353.10015.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 694846 by berger:

readability++


 M  +2 -2      jpeg/kis_jpeg_export.cc  
 M  +1 -1      png/kis_png_export.cc  


--- trunk/koffice/filters/krita/jpeg/kis_jpeg_export.cc #694845:694846
@@ -138,8 +138,8 @@
 
     KisJPEGConverter kpc(output, output->undoAdapter());
 
-    KisPaintDeviceSP pd = KisPaintDeviceSP(new KisPaintDevice(*img->projection()));
-    KisPaintLayerSP l = KisPaintLayerSP(new KisPaintLayer(img.data(), "projection", OPACITY_OPAQUE, pd));
+    KisPaintDeviceSP pd = new KisPaintDevice(*img->projection());
+    KisPaintLayerSP l = new KisPaintLayer(img, "projection", OPACITY_OPAQUE, pd);
 
     vKisAnnotationSP_it beginIt = img->beginAnnotations();
     vKisAnnotationSP_it endIt = img->endAnnotations();
--- trunk/koffice/filters/krita/png/kis_png_export.cc #694845:694846
@@ -72,7 +72,7 @@
     KisImageSP img = output->image();
     KisPaintDeviceSP pd;
     pd = new KisPaintDevice(*img->projection());
-    KisPaintLayerSP l = KisPaintLayerSP(new KisPaintLayer(img.data(), "projection", OPACITY_OPAQUE, pd));
+    KisPaintLayerSP l = new KisPaintLayer(img, "projection", OPACITY_OPAQUE, pd);
 
     KisRectConstIteratorPixel it = l->paintDevice()->createRectConstIterator(0,0, img->width(), img->height());
     KoColorSpace* cs = l->paintDevice()->colorSpace();
[prev in list] [next in list] [prev in thread] [next in thread] 

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