aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2022-08-10 13:59:19 -0400
committerYour Name <you@example.com>2022-08-10 13:59:19 -0400
commitbe36d1b0559b7968166062cd35d809f48faefe41 (patch)
tree9cec296194dcb98c35983504ccd25927893294d6
parent937764080f797ed662666e59fc22673041c6cad3 (diff)
downloadbiblereader-be36d1b0559b7968166062cd35d809f48faefe41.tar.gz
biblereader-be36d1b0559b7968166062cd35d809f48faefe41.tar.bz2
biblereader-be36d1b0559b7968166062cd35d809f48faefe41.zip
Fixed issue when chapter is set to 0
-rw-r--r--src/readerview.cc2
1 files changed, 1 insertions, 1 deletions
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]);