From 5e9bdb16c6b937bc7ea1268765581128aa96fe1a Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 16 Mar 2011 20:11:10 +0000 Subject: Temporary hack to stop crashing in Amiga frontend. Roll on frames re-implementation! svn path=/trunk/netsurf/; revision=12079 --- desktop/frames.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'desktop/frames.c') diff --git a/desktop/frames.c b/desktop/frames.c index 856a56395..e4bbabb9e 100644 --- a/desktop/frames.c +++ b/desktop/frames.c @@ -124,6 +124,14 @@ void browser_window_recalculate_iframes(struct browser_window *bw) { int bw_width, bw_height; int index; +#ifdef nsamiga + /* In the Amiga frontend we can switch off IFrames because they + * turn into pop-up hell due to broken frames implementation. + * This stops NetSurf asserting in this specific instance. + */ + if(bw && bw->window == NULL) return; +#endif + assert(bw != NULL); assert(bw->window != NULL); -- cgit v1.2.3