diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2010-10-12 09:36:59 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2010-10-12 09:36:59 +0000 |
commit | 39cf6dd2f3417380e827e18e98a5d4077f11f357 (patch) | |
tree | c35d3ec1664460d6106c2b6246ddf287d2034b34 /apps | |
parent | 59f487205c891d46530fc398ab92ec73c222a59f (diff) |
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
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gui/skin_engine/skin_render.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |