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

tbiggs at crosswire.org tbiggs at crosswire.org
Tue May 9 06:39:08 MST 2006


Author: tbiggs
Date: 2006-05-09 06:39:04 -0700 (Tue, 09 May 2006)
New Revision: 1913

Modified:
   trunk/src/modules/filters/osishtmlhref.cpp
Log:
fixed crash when using KJV 2.2

Modified: trunk/src/modules/filters/osishtmlhref.cpp
===================================================================
--- trunk/src/modules/filters/osishtmlhref.cpp	2006-05-07 01:39:28 UTC (rev 1912)
+++ trunk/src/modules/filters/osishtmlhref.cpp	2006-05-09 13:39:04 UTC (rev 1913)
@@ -248,8 +248,13 @@
 					buf += "<br />";
 					userData->supressAdjacentWhitespace = true;
 			}
-			else if(!strcmp(tag.getAttribute("type"),"x-p")) 
-				buf += tag.getAttribute("marker");
+			else if(!strcmp(tag.getAttribute("type"),"x-p"))  {
+			//	buf += tag.getAttribute("marker");
+				if( tag.getAttribute("marker"))
+					buf += tag.getAttribute("marker");
+				else
+					buf +=  "<!p>";
+			}
 		}
 
 		// <title>



More information about the sword-cvs mailing list