pajoye          Thu Jun 14 19:18:00 2007 UTC

  Modified files:              
    /php-src/ext/gd/libgd       gd.c 
  Log:
  - MFB: Fixed regression introduced by the fix for the libgd bug #74 
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/libgd/gd.c?r1=1.105&r2=1.106&diff_format=u
Index: php-src/ext/gd/libgd/gd.c
diff -u php-src/ext/gd/libgd/gd.c:1.105 php-src/ext/gd/libgd/gd.c:1.106
--- php-src/ext/gd/libgd/gd.c:1.105     Wed Jun  6 09:43:38 2007
+++ php-src/ext/gd/libgd/gd.c   Thu Jun 14 19:18:00 2007
@@ -1665,20 +1665,29 @@
        int lx = 0, ly = 0;
        int fx = 0, fy = 0;
 
-       if (s > 360) {
-               s = s % 360;
-       }
 
-       if (e > 360) {
-               e = e % 360;
-       }
+       if (s == e) {
+               s = 0; e = 360; 
+       } else {
 
-       while (s<0) {
-               s += 360;
-       }
+               if (s > 360) {
+                       s = s % 360;
+               }
 
-       while (e < s) {
-               e += 360;
+               if (e > 360) {
+                       e = e % 360;
+               }
+
+               while (s < 0) {
+                       s += 360;
+               }
+
+               while (e < s) {
+                       e += 360;
+               }
+               if (s == e) {
+                       s = 0; e = 360; 
+               }
        }
 
        for (i = s; i <= e; i++) {

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

Reply via email to