[sword-devel] BibleTime indexing problem
Gary Holmlund
gary.holmlund at gmail.com
Fri Mar 2 22:05:08 MST 2012
Troy,
I found it takes both of these conditions to cause the problem.
key->Headings(true);
book->setSkipConsecutiveLinks(true);
The program below outputs Malachi 1:1
Should BibleTime do something different or is this a sword issue.
Gary
#include <iostream>
#include <swmgr.h>
#include <swmodule.h>
#include <versekey.h>
using namespace sword;
using namespace std;
int main(int argc, char **argv) {
const char *modName = "HunKar";
SWMgr library;
SWModule *book = library.getModule(modName);
if (!book) {
cerr << "Can't find module: " << modName << endl;
return -1;
}
VerseKey* key = ((VerseKey *)book->getKey());
key->Headings(true);
book->setSkipConsecutiveLinks(true);
book->setPosition(TOP);
cout << *key << endl;
return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20120302/1e7c5af6/attachment.html>
More information about the sword-devel
mailing list