changeset 386:5326544ab2ec

Change dw_mle_query() under GTK 1.2 so that it returns the correct number of lines. Original code failed to return pointer to text as it used value of *bytes, and this was 1 greater than maximum number of bytes.
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 05 May 2003 07:11:05 +0000
parents 761e5fddffca
children 456c13a6e332
files gtk/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/dw.c	Thu May 01 09:07:27 2003 +0000
+++ b/gtk/dw.c	Mon May 05 07:11:05 2003 +0000
@@ -3056,7 +3056,7 @@
 				gchar *text;
 
 				*lines = 0;
-				text = gtk_editable_get_chars(GTK_EDITABLE(&(GTK_TEXT(tmp)->editable)), 0, bytes ? *bytes : gtk_text_get_length(GTK_TEXT(tmp)));
+				text = gtk_editable_get_chars(GTK_EDITABLE(&(GTK_TEXT(tmp)->editable)), 0, gtk_text_get_length(GTK_TEXT(tmp)));
 
 				if(text)
 				{