<html><head/><body><html><head></head><body>Thanks Karl, <br>
<br>
Yes, each snippet was helpful. Nic's was a quick test which caused the bug and was easy to use for testing. Greg's snippet wasn't as helpful as all his comments and stack traces leading up to his patch. He is preventing book from getting to 0 which does alleviate the problem but also stops a book from becoming an intro. Hope that explains.<br>
<br>
Troy <br><br><div class="gmail_quote">Karl Kleinpaste <karl@kleinpaste.org> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre style="white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px">You didn't also need this snippet from Greg a couple days ago?<br /><br />--- src/keys/versekey.cpp (revision 2792)<br />+++ src/keys/versekey.cpp (working copy)<br />@@ -1347,7 +1347,9 @@<br /> }<br /> if (verse < (intros?0:1)) {<br /> if (--chapter < (intros?0:1)) {<br />- --book;<br />+ if (book > 1) {<br />+ --book;<br />+ }<br /> chapter += (getChapterMax() + (intros?1:0));<br /> }<br /> verse += (getVerseMax() + (intros?1:0));<br /><br /><hr /><br />sword-devel mailing list: sword-devel@crosswire.org<br /><a href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a><br />Instructions to unsubscribe/change your settings at above page<br /></pre></blockquote></div><br>
-- <br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.</body></html></body></html>