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

scribe at crosswire.org scribe at crosswire.org
Tue May 12 22:08:23 MST 2009


Author: scribe
Date: 2009-05-12 22:08:23 -0700 (Tue, 12 May 2009)
New Revision: 2403

Modified:
   trunk/src/keys/versekey.cpp
Log:
fixed logic to set verse to 0|1 if resetting book


Modified: trunk/src/keys/versekey.cpp
===================================================================
--- trunk/src/keys/versekey.cpp	2009-05-13 05:02:34 UTC (rev 2402)
+++ trunk/src/keys/versekey.cpp	2009-05-13 05:08:23 UTC (rev 2403)
@@ -1381,8 +1381,9 @@
 
 void VerseKey::setBook(char ibook)
 {
+	verse   = ibook ? 1 : 0;
 	chapter = ibook ? 1 : 0;
-	book = ibook;
+	book    = ibook;
 	Normalize(1);
 }
 
@@ -1417,7 +1418,7 @@
 
 void VerseKey::setChapter(int ichapter)
 {
-	verse = ichapter ? 1 : 0;
+	verse   = ichapter ? 1 : 0;
 	chapter = ichapter;
 	Normalize(1);
 }




More information about the sword-cvs mailing list