summaryrefslogtreecommitdiff
path: root/src/modules/texts/rawtext4/rawtext4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/texts/rawtext4/rawtext4.cpp')
-rw-r--r--src/modules/texts/rawtext4/rawtext4.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/texts/rawtext4/rawtext4.cpp b/src/modules/texts/rawtext4/rawtext4.cpp
index 5980801..caae680 100644
--- a/src/modules/texts/rawtext4/rawtext4.cpp
+++ b/src/modules/texts/rawtext4/rawtext4.cpp
@@ -3,7 +3,7 @@
* rawtext4.cpp - code for class 'RawText4'- a module that reads raw text
* files: ot and nt using indexs ??.bks ??.cps ??.vss
*
- * $Id: rawtext4.cpp 2980 2013-09-14 21:51:47Z scribe $
+ * $Id: rawtext4.cpp 3456 2017-04-24 09:26:34Z scribe $
*
* Copyright 2007-2013 CrossWire Bible Society (http://www.crosswire.org)
* CrossWire Bible Society
@@ -75,7 +75,7 @@ SWBuf &RawText4::getRawEntryBuf() const {
VerseKey &key = getVerseKey();
findOffset(key.getTestament(), key.getTestamentIndex(), &start, &size);
- entrySize = size; // support getEntrySize call
+ entrySize = (int)size; // support getEntrySize call
entryBuf = "";
readText(key.getTestament(), start, size, entryBuf);
@@ -164,6 +164,7 @@ bool RawText4::isLinked(const SWKey *k1, const SWKey *k2) const {
findOffset(vk1->getTestament(), vk1->getTestamentIndex(), &start1, &size1);
findOffset(vk2->getTestament(), vk2->getTestamentIndex(), &start2, &size2);
+ if (!size1 || !size2) return false;
return start1 == start2;
}