From 39cf6dd2f3417380e827e18e98a5d4077f11f357 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Tue, 12 Oct 2010 09:36:59 +0000 Subject: Viewports dont necessarily have children lines, so make sure there is one or it will crash git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28245 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/skin_engine/skin_render.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps') diff --git a/apps/gui/skin_engine/skin_render.c b/apps/gui/skin_engine/skin_render.c index 9b86380ade..b3e9c74825 100644 --- a/apps/gui/skin_engine/skin_render.c +++ b/apps/gui/skin_engine/skin_render.c @@ -700,8 +700,9 @@ void skin_render(struct gui_wps *gwps, unsigned refresh_mode) display->clear_viewport(); } /* render */ - skin_render_viewport(viewport->children[0], gwps, - skin_viewport, vp_refresh_mode); + if (viewport->children_count) + skin_render_viewport(viewport->children[0], gwps, + skin_viewport, vp_refresh_mode); refresh_mode = old_refresh_mode; } -- cgit v1.2.3