[sword-svn] r2183 - trunk/utilities

scribe at www.crosswire.org scribe at www.crosswire.org
Wed Jul 16 03:10:30 MST 2008


Author: scribe
Date: 2008-07-16 03:10:30 -0700 (Wed, 16 Jul 2008)
New Revision: 2183

Modified:
   trunk/utilities/osis2mod.cpp
Log:
removed references to builtin_books


Modified: trunk/utilities/osis2mod.cpp
===================================================================
--- trunk/utilities/osis2mod.cpp	2008-07-15 02:25:55 UTC (rev 2182)
+++ trunk/utilities/osis2mod.cpp	2008-07-16 10:10:30 UTC (rev 2183)
@@ -297,12 +297,12 @@
 #ifdef DEBUG
 	cout << "\tC" << (int)(key.builtin_books[key.Testament()-1][key.Book()-1].chapmax) << ":V" << (int)(key.builtin_books[key.Testament()-1][key.Book()-1].versemax[key.Chapter()-1]);
 #endif
-	if (key.Chapter() > key.builtin_books[key.Testament()-1][key.Book()-1].chapmax) {
-		key.Chapter(key.builtin_books[key.Testament()-1][key.Book()-1].chapmax);
-		key.Verse(key.builtin_books[key.Testament()-1][key.Book()-1].versemax[key.Chapter()-1]);
+	if (key.Chapter() > key.getChapterMax()) {
+		key.Chapter(key.getChapterMax());
+		key.Verse(key.getVerseMax());
 	}
-	else if (key.Verse() > key.builtin_books[key.Testament()-1][key.Book()-1].versemax[key.Chapter()-1]) {
-		key.Verse(key.builtin_books[key.Testament()-1][key.Book()-1].versemax[key.Chapter()-1]);
+	else if (key.Verse() > key.getVerseMax()) {
+		key.Verse(key.getVerseMax());
 	}
 	cout << "\tas " << key << endl;
 }




More information about the sword-cvs mailing list