[sword-svn] r1710 - trunk/src/keys

scribe at crosswire.org scribe at crosswire.org
Fri Feb 4 20:45:22 MST 2005


Author: scribe
Date: 2005-02-04 20:45:21 -0700 (Fri, 04 Feb 2005)
New Revision: 1710

Modified:
   trunk/src/keys/versekey.cpp
Log:
Handle spaces before range '-'

Modified: trunk/src/keys/versekey.cpp
===================================================================
--- trunk/src/keys/versekey.cpp	2005-02-04 09:46:22 UTC (rev 1709)
+++ trunk/src/keys/versekey.cpp	2005-02-05 03:45:21 UTC (rev 1710)
@@ -534,7 +534,10 @@
 					}
 				}
 
-				if ((*buf == '-') && (expandRange)) {	// if this is a dash save lowerBound and wait for upper
+				// check for '-'
+				for (q = 0; ((buf[q]) && (buf[q] == ' ')); q++);
+				if ((buf[q] == '-') && (expandRange)) {	// if this is a dash save lowerBound and wait for upper
+					buf+=q;
 					VerseKey newElement;
 					newElement.LowerBound(curkey);
 					newElement.setPosition(TOP);



More information about the sword-cvs mailing list