aboutsummaryrefslogtreecommitdiff
path: root/src/readerview.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/readerview.cc')
-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]);