[jsword-svn] r2233 - trunk/jsword/src/main/java/org/crosswire/jsword/book/sword

dmsmith at crosswire.org dmsmith at crosswire.org
Mon Mar 5 04:38:20 MST 2012


Author: dmsmith
Date: 2012-03-05 04:38:20 -0700 (Mon, 05 Mar 2012)
New Revision: 2233

Modified:
   trunk/jsword/src/main/java/org/crosswire/jsword/book/sword/RawBackend.java
Log:
Fixed a bug (just introduced in the v11n changes) that flipped the testaments in RawBackend.

Modified: trunk/jsword/src/main/java/org/crosswire/jsword/book/sword/RawBackend.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/book/sword/RawBackend.java	2012-02-20 01:21:42 UTC (rev 2232)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/book/sword/RawBackend.java	2012-03-05 11:38:20 UTC (rev 2233)
@@ -79,7 +79,7 @@
             Testament testament = v11n.getTestament(index);
             index = v11n.getTestamentOrdinal(index);
             RandomAccessFile idxRaf = otIdxRaf;
-            if (testament == Testament.OLD) {
+            if (testament == Testament.NEW) {
                 idxRaf = ntIdxRaf;
             }
 
@@ -111,7 +111,7 @@
             Testament testament = v11n.getTestament(index);
             index = v11n.getTestamentOrdinal(index);
             RandomAccessFile idxRaf = otIdxRaf;
-            if (testament == Testament.OLD) {
+            if (testament == Testament.NEW) {
                 idxRaf = ntIdxRaf;
             }
 
@@ -293,7 +293,7 @@
     protected String getEntry(String name, Testament testament, long index) throws IOException {
         RandomAccessFile idxRaf = otIdxRaf;
         RandomAccessFile txtRaf = otTxtRaf;
-        if (testament == Testament.OLD) {
+        if (testament == Testament.NEW) {
             idxRaf = ntIdxRaf;
             txtRaf = ntTxtRaf;
         }




More information about the jsword-svn mailing list