diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2006-06-26 19:47:22 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2006-06-26 19:47:22 +0000 |
commit | 553d6066d07cf08c10e1ba41970ebf7a88e889bd (patch) | |
tree | 044f0d36adc8b19966b11ee97d24d56dd779079b | |
parent | f881db3654615244d617f439b28ad53b50fc2c7b (diff) | |
download | netsurf-553d6066d07cf08c10e1ba41970ebf7a88e889bd.tar.gz netsurf-553d6066d07cf08c10e1ba41970ebf7a88e889bd.tar.bz2 |
Fix textarea crashes
svn path=/trunk/netsurf/; revision=2650
-rw-r--r-- | riscos/textarea.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscos/textarea.c b/riscos/textarea.c index 3b861e3a7..cd3a47257 100644 --- a/riscos/textarea.c +++ b/riscos/textarea.c @@ -150,6 +150,9 @@ uintptr_t textarea_create(wimp_w parent, wimp_i icon, unsigned int flags, /** \todo Better line height calculation */ ret->line_height = (int)(((ret->font_size * 1.25) / 16) * 2.0) + 1; + ret->line_count = 0; + ret->lines = 0; + error = xwimp_create_window(&text_area_definition, &ret->window); if (error) { LOG(("xwimp_create_window: 0x%x: %s", |