From 48b8f0c27ae0bc673d25c02135754b41b0c00474 Mon Sep 17 00:00:00 2001 From: "nisheeth%netscape.com" Date: Tue, 1 Sep 1998 05:40:50 +0000 Subject: [PATCH] Fix for bug# 313278. Random links on the page were unclickable. The problem was that the width and height of the dummy floating element that gets appended to the line list were not being initialized to 0 in lo_AppendFloatToLineList() and was fooling the selection code into thinking that the floating element is insanely large. So, the link wasn't being returned to the FE when you moused over it. --- lib/layout/layrelay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/layout/layrelay.c b/lib/layout/layrelay.c index 3f8a518120df..4a1a0f05e654 100644 --- a/lib/layout/layrelay.c +++ b/lib/layout/layrelay.c @@ -1705,6 +1705,8 @@ void lo_AppendFloatInLineList(MWContext *context, float_dummy->lo_any.ele_id = NEXT_ELEMENT; float_dummy->lo_any.x = state->x; float_dummy->lo_any.y = state->y; + float_dummy->lo_any.width = 0; + float_dummy->lo_any.height = 0; float_dummy->lo_any.next = restOfLine; float_dummy->lo_any.prev = NULL;