pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/graphics/gimmage Use bool operator for determining nul...
details: https://anonhg.NetBSD.org/pkgsrc/rev/638df5a9ee91
branches: trunk
changeset: 358297:638df5a9ee91
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu Feb 09 00:22:35 2017 +0000
description:
Use bool operator for determining nullness.
diffstat:
graphics/gimmage/distinfo | 3 +-
graphics/gimmage/patches/patch-src_ImageEventBox.cpp | 40 ++++++++++++++++++++
2 files changed, 42 insertions(+), 1 deletions(-)
diffs (57 lines):
diff -r 6cfd6b51b455 -r 638df5a9ee91 graphics/gimmage/distinfo
--- a/graphics/gimmage/distinfo Thu Feb 09 00:21:52 2017 +0000
+++ b/graphics/gimmage/distinfo Thu Feb 09 00:22:35 2017 +0000
@@ -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
diff -r 6cfd6b51b455 -r 638df5a9ee91 graphics/gimmage/patches/patch-src_ImageEventBox.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/gimmage/patches/patch-src_ImageEventBox.cpp Thu Feb 09 00:22:35 2017 +0000
@@ -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