mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-05 09:04:23 +03:00
Fix 1488164.
svn path=/trunk/netsurf/; revision=2718
This commit is contained in:
parent
ea44d84833
commit
55389c543b
@ -436,6 +436,9 @@ void history_layout(struct history *history)
|
||||
time_t t = time(0);
|
||||
struct tm *tp = localtime(&t);
|
||||
bool shuffle = tp->tm_mon == 3 && tp->tm_mday == 1;
|
||||
|
||||
if (!history)
|
||||
return;
|
||||
|
||||
history->width = 0;
|
||||
if (history->start)
|
||||
@ -650,6 +653,9 @@ struct history_entry *history_find_position(struct history_entry *entry,
|
||||
{
|
||||
struct history_entry *child;
|
||||
struct history_entry *found;
|
||||
|
||||
if (!entry)
|
||||
return 0;
|
||||
|
||||
if (entry->x <= x && x <= entry->x + WIDTH &&
|
||||
entry->y <= y && y <= entry->y + HEIGHT)
|
||||
|
Loading…
x
Reference in New Issue
Block a user