From 8bebcb5ca9d2760ff410a4c415a4f599ba9128fc Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 20 Feb 2009 12:12:32 +0000 Subject: Fix handling of URLs on float boxes (which have no style). svn path=/trunk/netsurf/; revision=6574 --- desktop/browser.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/desktop/browser.c b/desktop/browser.c index f22ac6702..bbccfc7bd 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -2383,9 +2383,15 @@ void browser_window_form_select(struct browser_window *bw, gui_pointer_shape get_pointer_shape(struct box *box) { gui_pointer_shape pointer; + struct css_style *style; - assert(box->style); - switch (box->style->cursor) { + if (box->type == BOX_FLOAT_LEFT || box->type == BOX_FLOAT_RIGHT) + style = box->children->style; + else + style = box->style; + + assert(style); + switch (style->cursor) { case CSS_CURSOR_AUTO: if (box->href || (box->gadget && (box->gadget->type == GADGET_IMAGE || -- cgit v1.2.3