From be36d1b0559b7968166062cd35d809f48faefe41 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 10 Aug 2022 13:59:19 -0400 Subject: Fixed issue when chapter is set to 0 --- src/readerview.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/readerview.cc b/src/readerview.cc index 80f234c..35444cf 100644 --- a/src/readerview.cc +++ b/src/readerview.cc @@ -96,7 +96,7 @@ void ReaderView::refresh() { } conf = libbible::getPassages(getCurrMod(), getBook()); - if(getChapter() > conf.size()) { + if(getChapter() > conf.size() or getChapter() <= 0) { setChapter(1); } auto texts = libbible::getText(conf[getChapter()-1]); -- cgit v1.2.3