summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-09-20 09:15:35 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-09-20 09:15:35 +0000
commit39ff1878bc35b2ce69180d734cc1b58b69419e8e (patch)
tree60065c601cf12226f292f815e488aa8973d1e788
parent300f64c99a28bf76dfc23b8730f4ef2749a61140 (diff)
downloadrockbox-39ff1878bc35b2ce69180d734cc1b58b69419e8e.tar.gz
rockbox-39ff1878bc35b2ce69180d734cc1b58b69419e8e.zip
Fix FS#7766 - crash at track transition if A-B repeat is enabled but no B marker is set
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14769 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/gwps-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index ab53fe95cc..a2f1aa660b 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -486,7 +486,7 @@ static void draw_progressbar(struct gui_wps *gwps, int line)
HORIZONTAL);
#ifdef AB_REPEAT_ENABLE
- if ( ab_repeat_mode_enabled() )
+ if ( ab_repeat_mode_enabled() && state->id3->length != 0 )
ab_draw_markers(display, state->id3->length,
data->progress_start, data->progress_end, sb_y,
data->progress_height);