diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-09-08 16:34:51 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-09-08 16:34:51 +0000 |
| commit | 1f10f99dc055815169e4cc3734da5d2ef26fd7be (patch) | |
| tree | 5dfbae860899ee57ed4201204b190832ced3b27b /apps | |
| parent | e2ccabf89df325ddf0407bfea2fee3c00334264b (diff) | |
| download | rockbox-1f10f99dc055815169e4cc3734da5d2ef26fd7be.zip rockbox-1f10f99dc055815169e4cc3734da5d2ef26fd7be.tar.gz rockbox-1f10f99dc055815169e4cc3734da5d2ef26fd7be.tar.bz2 rockbox-1f10f99dc055815169e4cc3734da5d2ef26fd7be.tar.xz | |
Fix/commit FS#10595. A (sub)line could be part of the previous viewport due to a off-by-one bug in the indexing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22662 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/gui/skin_engine/skin_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_parser.c b/apps/gui/skin_engine/skin_parser.c index a6d595d..c23f55c 100644 --- a/apps/gui/skin_engine/skin_parser.c +++ b/apps/gui/skin_engine/skin_parser.c @@ -668,7 +668,7 @@ static int parse_viewport(const char *wps_bufptr, skin_vp->pb = NULL; skin_vp->lines = NULL; if (curr_line) - curr_line->curr_subline->last_token_idx = wps_data->num_tokens; + curr_line->curr_subline->last_token_idx = wps_data->num_tokens - 1; curr_line = NULL; if (!skin_start_new_line(skin_vp, wps_data->num_tokens)) return WPS_ERROR_INVALID_PARAM; |