cvs: gd(GD_2_0) /libgd gd.c

[email protected] ("Pierre-Alain Joye")
Newsgroups php.gd.cvs
Message-ID <cvspajoye1177602761@cvsserver>
pajoye		Thu Apr 26 15:52:41 2007 UTC

  Modified files:              (Branch: GD_2_0)
    /gd/libgd	gd.c 
  Log:
  - #72 (and #77), fix vertical lines when y2 < y1
  
  
http://cvs.php.net/viewvc.cgi/gd/libgd/gd.c?r1=1.49.2.6&r2=1.49.2.7&diff_format=u
Index: gd/libgd/gd.c
diff -u gd/libgd/gd.c:1.49.2.6 gd/libgd/gd.c:1.49.2.7
--- gd/libgd/gd.c:1.49.2.6	Sat Apr 14 17:27:32 2007
+++ gd/libgd/gd.c	Thu Apr 26 15:52:41 2007
@@ -1,4 +1,4 @@
-/* $Id: gd.c,v 1.49.2.6 2007/04/14 17:27:32 pajoye Exp $ */
+/* $Id: gd.c,v 1.49.2.7 2007/04/26 15:52:41 pajoye Exp $ */
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
@@ -1027,8 +1027,8 @@
 	} else {
 		if (y2 < y1) {
 			int t = y1;
-			y2 = y1;
-			y1 = t;
+			y1 = y2;
+			y2 = t;
 		}
 
 		for (;y1 <= y2; y1++) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.