[sword-svn] r2048 - trunk/src/modules/filters

scribe at www.crosswire.org scribe at www.crosswire.org
Fri May 11 19:17:51 MST 2007


Author: scribe
Date: 2007-05-11 19:17:51 -0700 (Fri, 11 May 2007)
New Revision: 2048

Modified:
   trunk/src/modules/filters/osiswordjs.cpp
Log:
Handle cases where there is no Greek or Hebrew lexica present.


Modified: trunk/src/modules/filters/osiswordjs.cpp
===================================================================
--- trunk/src/modules/filters/osiswordjs.cpp	2007-05-10 13:58:11 UTC (rev 2047)
+++ trunk/src/modules/filters/osiswordjs.cpp	2007-05-12 02:17:51 UTC (rev 2048)
@@ -116,10 +116,10 @@
 					SWBuf lexName = "";
 					// we can pass the real lex name in, but we have some
 					// aliases in the javascript to optimize bandwidth
-					if (gh == 'G') {
+					if ((gh == 'G') && (defaultGreekLex)) {
 						lexName = (!strcmp(defaultGreekLex->Name(), "StrongsGreek"))?"G":defaultGreekLex->Name();
 					}
-					else if (gh == 'H') {
+					else if ((gh == 'H') && (defaultHebLex)) {
 						lexName = (!strcmp(defaultHebLex->Name(), "StrongsHebrew"))?"H":defaultHebLex->Name();
 					}
 




More information about the sword-cvs mailing list