aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-node.c')
-rw-r--r--lib/ephy-node.c5
1 files changed, 4 insertions, 1 deletions
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. */