Correct base of font positioning. Stops click in text input causing segfault.

svn path=/trunk/netsurf/; revision=2538
This commit is contained in:
Rob Kendrick 2006-04-18 23:32:28 +00:00
parent 312bece1d0
commit 3c1ba2a0b6

View File

@ -105,7 +105,7 @@ bool nsfont_position_in_string(const struct css_style *style,
g_object_unref(context);
pango_font_description_free(desc);
*char_offset = index + 1;
*char_offset = index;
*actual_x = PANGO_PIXELS(pos.x);
return true;