From 370ed05c57a919f4c062c2bb9d2d2f051d014cca Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 16 Sep 2019 21:05:33 +0530 Subject: [PATCH] Fix series index always 1 in header/footer in the viewer --- src/pyj/read_book/prefs/head_foot.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/prefs/head_foot.pyj b/src/pyj/read_book/prefs/head_foot.pyj index 90b2a3577b..65d84ece95 100644 --- a/src/pyj/read_book/prefs/head_foot.pyj +++ b/src/pyj/read_book/prefs/head_foot.pyj @@ -140,7 +140,7 @@ def render_head_foot(div, which, region, progress_frac, metadata, current_toc_no text = ' & '.join(metadata.authors or v'[]') elif field is 'series': if metadata.series: - ival = fmt_sidx(ival, use_roman=interface_data.use_roman_numerals_for_series_number) + ival = fmt_sidx(metadata.series_index, use_roman=interface_data.use_roman_numerals_for_series_number) text = _('{0} of {1}').format(ival, metadata.series) elif field is 'clock': text = time_formatter.format(Date())