[sword-svn] r2309 - trunk/utilities

benpmorgan at crosswire.org benpmorgan at crosswire.org
Wed Apr 8 22:45:25 MST 2009


Author: benpmorgan
Date: 2009-04-08 22:45:25 -0700 (Wed, 08 Apr 2009)
New Revision: 2309

Modified:
   trunk/utilities/imp2vs.cpp
Log:
Give a warning if you use an unknown versification.
Fix linking, which wasn't working.



Modified: trunk/utilities/imp2vs.cpp
===================================================================
--- trunk/utilities/imp2vs.cpp	2009-04-09 02:08:09 UTC (rev 2308)
+++ trunk/utilities/imp2vs.cpp	2009-04-09 05:45:25 UTC (rev 2309)
@@ -87,6 +87,8 @@
 		else usage(progName, (((SWBuf)"Unknown argument: ")+ argv[i]).c_str());
 	}
 	// -----------------------------------------------------
+	const VerseMgr::System *v = VerseMgr::getSystemVerseMgr()->getVersificationSystem(v11n);
+	if(!v) std::cout << "Warning: Versification " << v11n << " not found. Using KJV versification...\n";
 
 
 	// setup module
@@ -198,7 +200,7 @@
 			}
 			else {
 				std::cout << "linking entry: " << *vkey << " to " << *linkMaster << std::endl;
-				module->linkEntry(vkey);
+				module->linkEntry(linkMaster);
 			}
 		}
 




More information about the sword-cvs mailing list