Line 0
Link Here
|
|
|
1 |
--- src/ImageEventBox.cpp.orig 2007-06-26 06:51:16.000000000 -0700 |
2 |
+++ src/ImageEventBox.cpp 2017-12-19 19:52:07.625718000 -0800 |
3 |
@@ -149,7 +149,7 @@ |
4 |
void ImageEventBox::ScaleImage( double scalefactor, |
5 |
Gdk::InterpType interp_type) |
6 |
{ |
7 |
- if(ImagePixbuf_Original != 0 && loaded == true) |
8 |
+ if(ImagePixbuf_Original && loaded == true) |
9 |
{ |
10 |
int new_width = (int)(scalefactor * (double)ImagePixbuf_Original->get_width()); |
11 |
int new_height = (int)(scalefactor * (double)ImagePixbuf_Original->get_height()); |
12 |
@@ -176,7 +176,7 @@ |
13 |
double * scalefactor, |
14 |
Gdk::InterpType interp_type) |
15 |
{ |
16 |
- if(ImagePixbuf_Original != 0 && loaded == true) |
17 |
+ if(ImagePixbuf_Original && loaded == true) |
18 |
{ |
19 |
double ratioh = (double)height/(double)ImagePixbuf_Original->get_height(); |
20 |
double ratiow = (double)width/(double)ImagePixbuf_Original->get_width(); |
21 |
@@ -206,7 +206,7 @@ |
22 |
double * scalefactor, |
23 |
Gdk::InterpType interp_type) |
24 |
{ |
25 |
- if(ImagePixbuf_Original != 0 && loaded == true) |
26 |
+ if(ImagePixbuf_Original && loaded == true) |
27 |
{ |
28 |
if( width <= ImagePixbuf_Original->get_width() || height <= ImagePixbuf_Original->get_height() ) |
29 |
{ |
30 |
@@ -242,7 +242,7 @@ |
31 |
// the rotation of the image |
32 |
void ImageEventBox::RotateImage(Gdk::PixbufRotation rotateby) |
33 |
{ |
34 |
- if(ImagePixbuf_Original != 0 && loaded == true) |
35 |
+ if(ImagePixbuf_Original && loaded == true) |
36 |
{ |
37 |
try |
38 |
{ |