From 49c05187f739779a6433f75a348529c26e123e94 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 14 Nov 2020 06:01:30 -0500 Subject: Fixed issue with multi-full-chapter references --- libbible.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'libbible.cc') diff --git a/libbible.cc b/libbible.cc index 92d6ee8..1bbf5c2 100644 --- a/libbible.cc +++ b/libbible.cc @@ -118,6 +118,7 @@ void inferMissing(libbible::passage *pass, SWModule *target) { if(ref.find(':') == string::npos) { // It's a multi-full-chapter reference pass->chapterEnd = stoi(ref.substr(ref.find_last_of('-')+1)); + key->setChapter(pass->chapterEnd); pass->verseEnd = key->getVerseMax(); } else { // It falls in categories c:v-v or c:v-c:v (or, technically, c-c:v) -- cgit v1.2.3