aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2020-11-14 06:01:30 -0500
committerYour Name <you@example.com>2020-11-14 06:01:30 -0500
commit49c05187f739779a6433f75a348529c26e123e94 (patch)
tree729028de6089439f18c7eb746e3ae7cdfd470501
parent41cdb2d5e3f8e5f08b4933cbb9693ee4a6908580 (diff)
downloadlibbible-49c05187f739779a6433f75a348529c26e123e94.tar.gz
libbible-49c05187f739779a6433f75a348529c26e123e94.tar.bz2
libbible-49c05187f739779a6433f75a348529c26e123e94.zip
Fixed issue with multi-full-chapter references
-rw-r--r--libbible.cc1
-rw-r--r--mods.cc2
2 files changed, 2 insertions, 1 deletions
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)
diff --git a/mods.cc b/mods.cc
index 1a31602..6b2063a 100644
--- a/mods.cc
+++ b/mods.cc
@@ -120,7 +120,7 @@ void libbible::installModFromZip(string filename) {
string command = "unzip -o " + filename + " -d " + basedir + "&> /dev/null";
if(system(command.c_str())) {
//Uh oh...
- printf("Something bad happened when unpacking %s\n", filename.c_str());
+ printf("Something bad happened when unpacking %s\n. Is unzip installed?", filename.c_str());
}
}