From a30cf379915d28e124bb86ea42ca88b74d91c585 Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Thu, 15 Oct 1998 05:32:19 +0000 Subject: [PATCH] Fix for Bugzilla bug 492. We were inserting the floating element for the left/right aligned tables into the line list at the beginning of the list rather than the end. This caused re-ordering of floating tables as well as display problems. git-svn-id: svn://10.0.0.236/trunk@12871 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/lib/layout/laytable.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/mozilla/lib/layout/laytable.c b/mozilla/lib/layout/laytable.c index f8a8dea41b4..94cc6da6b99 100644 --- a/mozilla/lib/layout/laytable.c +++ b/mozilla/lib/layout/laytable.c @@ -7680,17 +7680,14 @@ fprintf(stderr, "lo_EndTable called\n"); last->lo_any.next = state->float_list; state->float_list = state->line_list; state->line_list = NULL; - } + } + + state->line_list = save_line_list; if (relayout == FALSE) { - lo_AppendFloatInLineList(context, state, (LO_Element *)table->table_ele, save_line_list ); - } - else - { - state->line_list = save_line_list; - } - + lo_AppendFloatInLineList(context, state, (LO_Element *)table->table_ele, NULL); + } table->table_ele->line_height = line_height; table->table_ele->expected_y = table->table_ele->y;