iliaa           Sat Feb 21 11:49:40 2004 EDT

  Modified files:              
    /php-src/ext/gd     gd.c 
  Log:
  Set correct default threshold for image2wbmp().
  
  
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.286&r2=1.287&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.286 php-src/ext/gd/gd.c:1.287
--- php-src/ext/gd/gd.c:1.286   Tue Feb 17 16:30:00 2004
+++ php-src/ext/gd/gd.c Sat Feb 21 11:49:39 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: gd.c,v 1.286 2004/02/17 21:30:00 iliaa Exp $ */
+/* $Id: gd.c,v 1.287 2004/02/21 16:49:39 iliaa Exp $ */
 
 /* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
    Cold Spring Harbor Labs. */
@@ -1723,6 +1723,7 @@
                        case PHP_GDIMG_CONVERT_WBM:
                                if (q < 0 || q > 255) {
                                        php_error_docref(NULL TSRMLS_CC, E_WARNING, 
"Invalid threshold value '%d'. It must be between 0 and 255", q);
+                                       q = 0;
                                }
                                gdImageWBMP(im, q, fp);
                                break;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to