[cairo] patch: fixes text garbage in cairo_show_text
Jordi Mas
jordi at ximian.com
Thu Feb 26 07:23:04 PST 2004
Hello Carl,
The function cairo_show_text was showing garbage in some situations due to a
bug assigning the real string length. Patch attached. I will appreciated if
you include it in the next release of Cairo.
Thanks!
Jordi,
-------------- next part --------------
? patch.txt
Index: src/cairo_ft_font.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_ft_font.c,v
retrieving revision 1.18
diff -u -r1.18 cairo_ft_font.c
--- src/cairo_ft_font.c 13 Feb 2004 03:02:33 -0000 1.18
+++ src/cairo_ft_font.c 26 Feb 2004 15:12:48 -0000
@@ -263,7 +263,7 @@
len -= step;
utf8 += step;
}
- *nchars = alloc;
+ *nchars = n;
}
static void
More information about the cairo
mailing list