From bcd2c87f376c7a7912e1cd28d980821f9903c155 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 23 Jan 2003 13:53:00 +0000 Subject: Fix evil bug in id factory. 2003-01-23 Marco Pesenti Gritti * TODO: * lib/ephy-node.c: (id_factory_set_to): Fix evil bug in id factory. --- ChangeLog | 7 +++++++ TODO | 2 +- lib/ephy-node.c | 5 ++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1eeffe617..a3e2dee6f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-01-23 Marco Pesenti Gritti + + * TODO: + * lib/ephy-node.c: (id_factory_set_to): + + Fix evil bug in id factory. + 2003-01-23 Marco Pesenti Gritti * TODO: diff --git a/TODO b/TODO index 64aa3e8f3..f9b747e17 100644 --- a/TODO +++ b/TODO @@ -6,7 +6,6 @@ To do: - save bookmarks dialog state (current keyword) - show bookmarks updated content - temporary bookmarks, maybe an expire checkbox in new bookmark dialog ? -- history shows empty hosts sometimes !? Egg problems: - popups not working @@ -30,3 +29,4 @@ Done: * drop items from history when they are not visited since some time * create print preview toolbar only when necessary * titles in history for hosts too +* history shows empty hosts sometimes !? diff --git a/lib/ephy-node.c b/lib/ephy-node.c index c9ee9aa76..19ca32a15 100644 --- a/lib/ephy-node.c +++ b/lib/ephy-node.c @@ -1418,7 +1418,10 @@ ephy_node_new_id (void) static void id_factory_set_to (gulong new_factory_pos) { - id_factory = new_factory_pos + 1; + if (new_factory_pos > id_factory) + { + id_factory = new_factory_pos + 1; + } } /* evillish hacks to temporarily readlock->writelock and v.v. */ -- cgit v1.2.3