From 37c04db1d6323b783f4df6611d30b2c201d8ea9d Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 23 Mar 2007 13:16:39 +0100 Subject: [PATCH] check_html_form_hierarchy: Old code was buggy. Old code caused the assertion failure on the shutdownday's page. --- src/document/html/renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/document/html/renderer.c b/src/document/html/renderer.c index f3bdcdd8..01a30553 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -1597,8 +1597,8 @@ check_html_form_hierarchy(struct part *part) foreachsafe (fc, next, form_controls) { foreach (form, document->forms) { - if (fc->position < form->form_num - || form->form_end < fc->position) + if (form->form_num <= fc->position + && fc->position <= form->form_end) continue; fc->form = form;