From f071afe243ec7d8eef04319413611f74d46e34ae Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 21 Aug 2008 21:42:48 +0000 Subject: Code cleanup. svn path=/trunk/netsurf/; revision=5167 --- amiga/font.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'amiga/font.c') diff --git a/amiga/font.c b/amiga/font.c index 1bb0674c2..3d476c0e2 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -75,6 +75,7 @@ bool nsfont_position_in_string(const struct css_style *style, { struct TextExtent extent; struct TextFont *tfont = ami_open_font(style); + *char_offset = TextFit(currp,string,length, &extent,NULL,1,x,32767); @@ -228,5 +229,5 @@ void ami_close_font(struct TextFont *tfont) RPTAG_Font,origrpfont, TAG_DONE); - CloseFont(tfont); + if(tfont) CloseFont(tfont); } -- cgit v1.2.3