[sword-svn] r2276 - trunk/src/keys
scribe at crosswire.org
scribe at crosswire.org
Thu Mar 5 17:48:47 MST 2009
Author: scribe
Date: 2009-03-05 17:48:47 -0700 (Thu, 05 Mar 2009)
New Revision: 2276
Modified:
trunk/src/keys/versekey.cpp
Log:
Added fallback v11n to KJV if requested system isn't found
Modified: trunk/src/keys/versekey.cpp
===================================================================
--- trunk/src/keys/versekey.cpp 2009-03-05 23:17:56 UTC (rev 2275)
+++ trunk/src/keys/versekey.cpp 2009-03-06 00:48:47 UTC (rev 2276)
@@ -224,6 +224,8 @@
void VerseKey::setVersificationSystem(const char *name) {
refSys = VerseMgr::getSystemVerseMgr()->getVersificationSystem(name);
+ // TODO: cheese, but what should we do if requested v11n system isn't found?
+ if (!refSys) refSys = VerseMgr::getSystemVerseMgr()->getVersificationSystem("KJV");
BMAX[0] = refSys->getBMAX()[0];
BMAX[1] = refSys->getBMAX()[1];
More information about the sword-cvs
mailing list