pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/gimmage



Module Name:    pkgsrc
Committed By:   joerg
Date:           Thu Feb  9 00:22:35 UTC 2017

Modified Files:
        pkgsrc/graphics/gimmage: distinfo
Added Files:
        pkgsrc/graphics/gimmage/patches: patch-src_ImageEventBox.cpp

Log Message:
Use bool operator for determining nullness.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/graphics/gimmage/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/graphics/gimmage/patches/patch-src_ImageEventBox.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/gimmage/distinfo
diff -u pkgsrc/graphics/gimmage/distinfo:1.4 pkgsrc/graphics/gimmage/distinfo:1.5
--- pkgsrc/graphics/gimmage/distinfo:1.4        Tue Nov  3 21:33:59 2015
+++ pkgsrc/graphics/gimmage/distinfo    Thu Feb  9 00:22:35 2017
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.4 2015/11/03 21:33:59 agc Exp $
+$NetBSD: distinfo,v 1.5 2017/02/09 00:22:35 joerg Exp $
 
 SHA1 (gimmage-0.2.3.tar.gz) = 732dee063553b787b65a0a5bd3d207bdb5d01df1
 RMD160 (gimmage-0.2.3.tar.gz) = d3fd105390e21548cf9c83b199681b53616f3640
 SHA512 (gimmage-0.2.3.tar.gz) = ff8fdf860d4712502e6e8656a14e5327a5b89af49f312e54de5f0e80cd6e406214a61228c79ad643c2640268d5eacfd760c83acbebdc7fa9b6e7c094728be167
 Size (gimmage-0.2.3.tar.gz) = 193777 bytes
 SHA1 (patch-aa) = ddb740f723e266d8fc6b37743ef43e6c1095c7ab
+SHA1 (patch-src_ImageEventBox.cpp) = db11a729e755b5c580bfa618e34acfe422a440c6

Added files:

Index: pkgsrc/graphics/gimmage/patches/patch-src_ImageEventBox.cpp
diff -u /dev/null pkgsrc/graphics/gimmage/patches/patch-src_ImageEventBox.cpp:1.1
--- /dev/null   Thu Feb  9 00:22:35 2017
+++ pkgsrc/graphics/gimmage/patches/patch-src_ImageEventBox.cpp Thu Feb  9 00:22:35 2017
@@ -0,0 +1,40 @@
+$NetBSD: patch-src_ImageEventBox.cpp,v 1.1 2017/02/09 00:22:35 joerg Exp $
+
+--- src/ImageEventBox.cpp.orig 2017-01-08 18:51:01.889096829 +0000
++++ src/ImageEventBox.cpp
+@@ -149,7 +149,7 @@ void ImageEventBox::LoadImage(     const Gli
+ void ImageEventBox::ScaleImage( double scalefactor,
+                                                               Gdk::InterpType interp_type)
+       {
+-      if(ImagePixbuf_Original != 0 && loaded == true)
++      if(ImagePixbuf_Original && loaded == true)
+               {
+               int new_width   = (int)(scalefactor * (double)ImagePixbuf_Original->get_width());
+               int new_height  = (int)(scalefactor * (double)ImagePixbuf_Original->get_height());
+@@ -176,7 +176,7 @@ void ImageEventBox::ScaleImage(    int widt
+                                                               double * scalefactor,
+                                                               Gdk::InterpType interp_type)
+       {
+-      if(ImagePixbuf_Original != 0 && loaded == true)
++      if(ImagePixbuf_Original && loaded == true)
+               {
+               double ratioh = (double)height/(double)ImagePixbuf_Original->get_height();
+               double ratiow = (double)width/(double)ImagePixbuf_Original->get_width();
+@@ -206,7 +206,7 @@ void ImageEventBox::ScaleImage2(   int wid
+                                                               double * scalefactor,
+                                                               Gdk::InterpType interp_type)
+       {
+-      if(ImagePixbuf_Original != 0 && loaded == true)
++      if(ImagePixbuf_Original && loaded == true)
+               {
+               if( width <= ImagePixbuf_Original->get_width() || height <= ImagePixbuf_Original->get_height() )
+                   {
+@@ -242,7 +242,7 @@ void ImageEventBox::ScaleImage2(   int wid
+ // the rotation of the image
+ void ImageEventBox::RotateImage(Gdk::PixbufRotation rotateby)
+       {
+-      if(ImagePixbuf_Original != 0 && loaded == true)
++      if(ImagePixbuf_Original && loaded == true)
+               {
+               try
+                       {



Home | Main Index | Thread Index | Old Index