From 438f039bda7d424f79502b3f83e99cedcb7f7ae9 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 3d9655e1..94c616bb 100644 --- a/src/document/html/renderer.c +++ b/src/document/html/renderer.c @@ -1858,8 +1858,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; -- 2.11.4.GIT