[sword-cvs] sword/src/modules/filters thmlhtmlhref.cpp,1.38,1.39

sword@www.crosswire.org sword@www.crosswire.org
Mon, 15 Dec 2003 13:26:05 -0700


Update of /usr/local/cvsroot/sword/src/modules/filters
In directory www:/tmp/cvs-serv1865

Modified Files:
	thmlhtmlhref.cpp 
Log Message:
got it right this time I hope

Index: thmlhtmlhref.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/thmlhtmlhref.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- thmlhtmlhref.cpp	15 Dec 2003 19:58:48 -0000	1.38
+++ thmlhtmlhref.cpp	15 Dec 2003 20:26:03 -0000	1.39
@@ -141,15 +141,17 @@
 		MyUserData *u = (MyUserData *)userData;
 		XMLTag tag(token);
 		if (tag.getName() && !strcmp(tag.getName(), "sync")) {
+			const char* value = tag.getAttribute("value");
 			if( tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "morph")) { //>
 				buf += "<small><em>(<a href=\"";
 				buf += "type=";
 				buf += tag.getAttribute("type");
 	
-				const char* value = tag.getAttribute("value");
+				//const char* value = tag.getAttribute("value");
 				buf += " value=";
 				buf += value ? value : "";
 				buf += "\">";
+				buf += value ? value : "";
 				buf += "</a>) </em></small>";
 			}
 			else if( tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "Strongs")) {
@@ -157,11 +159,12 @@
 				buf += "type=";
 				buf += tag.getAttribute("type");
 	
-				const char* value = tag.getAttribute("value");
+				//const char* value = tag.getAttribute("value");
 				buf += " value=";
 				buf += value ? value : "";
 				buf += "\">";
 				value++;
+				buf += value ? value : "";
 				buf += "</a>&gt; </em></small>";
 			}
 			else if( tag.getAttribute("type") && !strcmp(tag.getAttribute("type"), "Dict")) {