[evolution-patches] Patch for 56901 (Only one line gets printed when printing Tasks and Appointments)



JP,
   Here is a patch from Yong Sun to fix this bug. Please review it.
      Harry
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2639
diff -u -r1.2639 ChangeLog
--- ChangeLog	31 Jan 2005 12:43:31 -0000	1.2639
+++ ChangeLog	3 Feb 2005 10:48:50 -0000
@@ -1,3 +1,10 @@
+2005-02-03  Yong Sun <yong sun sun com>
+
+        Fix for #56091
+
+        * gui/print.c: (bound_text): When the width>maxwidth, the 
+	pointer 'p' should also be backwarded, same as 'o'.
+
 2005-01-31  Priit Laes <amd tt ee>
 
 	Fixes #61078
Index: gui/print.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/print.c,v
retrieving revision 1.71
diff -u -r1.71 print.c
--- gui/print.c	21 Jan 2005 18:15:42 -0000	1.71
+++ gui/print.c	3 Feb 2005 10:48:59 -0000
@@ -741,6 +741,7 @@
 				width+=gnome_font_get_glyph_width(font, gnome_font_lookup_default (font, c));
 				if (width>maxwidth) {
 					o--;
+					p--;
 					dump=1;
 				}
 			}
@@ -768,9 +769,8 @@
 				maxwidth -= indent;
 				first=0;
 			}
-		} else {
-			p++;
 		}
+		p++;
 	}
 	if (dump==0) {
 		*o=0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]