1 2009-03-20 08:54 diff -lru gtkhtml-3.24.4/gtkhtml/htmlengine.c gtkhtml-3.24.4-fix_crash_dkedves/gtkhtml/htmlengine.c Page 1
2 --- gtkhtml-3.24.4/gtkhtml/htmlengine.c 2009-03-20 08:54:09.000000000 +0100
3 +++ gtkhtml-3.24.4/gtkhtml/htmlengine.c 2009-03-19 21:38:46.000000000 +0100
4 @@ -1137,17 +1137,22 @@
10 - cd = elem->style->display;
14 - if (cd > maxLevel) {
15 - if (display != DISPLAY_INLINE
16 - || cd > DISPLAY_BLOCK)
19 + /* We skip invalid items to avoid crash...
20 + * Yeah, its only a workaround... FIXME */
21 + if (l->data && ((HTMLElement*)l->data)->style) {
24 + cd = elem->style->display;
28 + if (cd > maxLevel) {
29 + if (display != DISPLAY_INLINE
30 + || cd > DISPLAY_BLOCK)