[sword-cvs] sword/src/modules/filters thmlhtmlhref.cpp,1.31,1.32
sword@www.crosswire.org
sword@www.crosswire.org
Fri, 20 Jun 2003 07:52:36 -0700
Update of /usr/local/cvsroot/sword/src/modules/filters
In directory www:/tmp/cvs-serv4221
Modified Files:
thmlhtmlhref.cpp
Log Message:
added another check for tag.getName
Index: thmlhtmlhref.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/thmlhtmlhref.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** thmlhtmlhref.cpp 19 Jun 2003 22:03:17 -0000 1.31
--- thmlhtmlhref.cpp 20 Jun 2003 14:52:34 -0000 1.32
***************
*** 211,215 ****
}
}
! else if (!strcmp(tag.getName(), "div")) {
if (tag.isEndTag() && userData["SecHead"] == "true") {
buf += "</i></b><br />";
--- 211,215 ----
}
}
! else if (tag.getName() && !strcmp(tag.getName(), "div")) {
if (tag.isEndTag() && userData["SecHead"] == "true") {
buf += "</i></b><br />";
***************
*** 240,244 ****
}
*/
! else if (!strcmp(tag.getName(), "img")) {
const char *src = strstr(token, "src");
if (!src) // assert we have a src attribute
--- 240,244 ----
}
*/
! else if (tag.getName() && !strcmp(tag.getName(), "img")) {
const char *src = strstr(token, "src");
if (!src) // assert we have a src attribute