[sword-devel] Commentary modules, VerseKey::Normalize and non-existant entries

Joachim Ansorg sword-devel@crosswire.org
Fri, 7 Jul 2000 23:36:47 +0000

Troy, what's Normalize supposed to do?

I tried to use it to correct the key if it's set to a key which doesn't exist 
in the module.
But it doesn't work correctly.

I use this code:

			// jump to the previous chapter

			  vKey = (*(SWKey *)*module);
			  oldVerse = vKey.Verse();
			  vKey = (*(SWKey *)*module);
			  module->SetKey( vKey );			

Somehow this code doesn't correct the key after jumping!

Thank you Troy for all your help!