gtksourceview r1860 - in trunk: . gtksourceview



Author: pborelli
Date: Sat Jan 26 14:50:49 2008
New Revision: 1860
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=1860&view=rev

Log:
2008-01-25  Paolo Borelli  <pborelli katamail com>

	* gtksourceview/gtksourceprintcompositor.c: count from 1 when deciding
	which lines should have a number.



Modified:
   trunk/ChangeLog
   trunk/gtksourceview/gtksourceprintcompositor.c

Modified: trunk/gtksourceview/gtksourceprintcompositor.c
==============================================================================
--- trunk/gtksourceview/gtksourceprintcompositor.c	(original)
+++ trunk/gtksourceview/gtksourceprintcompositor.c	Sat Jan 26 14:50:49 2008
@@ -2437,7 +2437,7 @@
 		  gint                      line_number)
 {
 	return (compositor->priv->print_line_numbers > 0) &&
-	       (line_number % compositor->priv->print_line_numbers == 0);
+	       ((line_number + 1) % compositor->priv->print_line_numbers == 0);
 }
 
 static void



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