summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-02-20 12:12:32 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-02-20 12:12:32 +0000
commit8bebcb5ca9d2760ff410a4c415a4f599ba9128fc (patch)
tree9324d86c9e9e5e4778c6df3b54033e3006a36975 /desktop/browser.c
parentcc1094f0ac62db0d736b6e41e219fe628d22a69e (diff)
downloadnetsurf-8bebcb5ca9d2760ff410a4c415a4f599ba9128fc.tar.gz
netsurf-8bebcb5ca9d2760ff410a4c415a4f599ba9128fc.tar.bz2
Fix handling of URLs on float boxes (which have no style).
svn path=/trunk/netsurf/; revision=6574
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c10
1 files 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 ||