diff options
author | Adrian Lees <adrian@aemulor.com> | 2005-04-22 00:58:05 +0000 |
---|---|---|
committer | Adrian Lees <adrian@aemulor.com> | 2005-04-22 00:58:05 +0000 |
commit | 1e673368d1a6a376eb94bc14fe46368764d64355 (patch) | |
tree | 3cc4434be8bb6452744253a14e0d29c50c421a06 | |
parent | 8da644f44279d4e566a77f4227173915ff49a7c6 (diff) | |
download | netsurf-1e673368d1a6a376eb94bc14fe46368764d64355.tar.gz netsurf-1e673368d1a6a376eb94bc14fe46368764d64355.tar.bz2 |
[project @ 2005-04-22 00:58:05 by adrianl]
No selection when searching on non-html content
svn path=/import/netsurf/; revision=1677
-rw-r--r-- | riscos/search.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/riscos/search.c b/riscos/search.c index acb02f326..9317e0124 100644 --- a/riscos/search.c +++ b/riscos/search.c @@ -204,8 +204,10 @@ void end_search(void) { struct list_entry *a, *b; - selection_clear(search_selection, true); - selection_destroy(search_selection); + if (search_selection) { + selection_clear(search_selection, true); + selection_destroy(search_selection); + } search_selection = 0; search_current_window = 0; |