Temporary hack to stop crashing in Amiga frontend. Roll on frames re-implementation!

svn path=/trunk/netsurf/; revision=12079
This commit is contained in:
Chris Young 2011-03-16 20:11:10 +00:00
parent bc34303758
commit 5e9bdb16c6

View File

@ -124,6 +124,14 @@ void browser_window_recalculate_iframes(struct browser_window *bw) {
int bw_width, bw_height; int bw_width, bw_height;
int index; 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 != NULL);
assert(bw->window != NULL); assert(bw->window != NULL);