[jsword-svn] r1317 - trunk/jsword/src/main/java/org/crosswire/jsword/passage

dmsmith at www.crosswire.org dmsmith at www.crosswire.org
Sun May 6 08:24:35 MST 2007


Author: dmsmith
Date: 2007-05-06 08:24:35 -0700 (Sun, 06 May 2007)
New Revision: 1317

Modified:
   trunk/jsword/src/main/java/org/crosswire/jsword/passage/VerseRange.java
Log:
Fixed a bug in VerseRange.toOsisID where the first verse was repeated.

Modified: trunk/jsword/src/main/java/org/crosswire/jsword/passage/VerseRange.java
===================================================================
--- trunk/jsword/src/main/java/org/crosswire/jsword/passage/VerseRange.java	2007-05-05 13:47:29 UTC (rev 1316)
+++ trunk/jsword/src/main/java/org/crosswire/jsword/passage/VerseRange.java	2007-05-06 15:24:35 UTC (rev 1317)
@@ -401,7 +401,7 @@
         // Estimate the size of the buffer: book.dd.dd (where book is 3-5, 3 typical)
         StringBuffer buf = new StringBuffer((endOrdinal - startOrdinal + 1) * 10);
         buf.append(start.getOsisID());
-        for (int i = startOrdinal; i < endOrdinal; i++)
+        for (int i = startOrdinal + 1; i < endOrdinal; i++)
         {
             try
             {




More information about the jsword-svn mailing list