[sword-cvs] sword/src/modules/filters osisheadings.cpp,1.2,1.3

sword@www.crosswire.org sword@www.crosswire.org
Wed, 28 May 2003 00:26:14 -0700


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

Modified Files:
	osisheadings.cpp 
Log Message:
Fixed osisheadings to use xmltag to handle attributes in any order

Index: osisheadings.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/src/modules/filters/osisheadings.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** osisheadings.cpp	28 May 2003 01:53:00 -0000	1.2
--- osisheadings.cpp	28 May 2003 07:26:12 -0000	1.3
***************
*** 69,74 ****
  			XMLTag tag(token);
  			if (!stricmp(tag.getName(), "title")) {
! 				if (!stricmp(tag.getAttribute("type"), "section")) {
! 					if (!stricmp(tag.getAttribute("subtype"), "x-preverse")) {
  						hide = true;
  						preverse = true;
--- 69,74 ----
  			XMLTag tag(token);
  			if (!stricmp(tag.getName(), "title")) {
! 				if ((tag.getAttribute("type")) && (!stricmp(tag.getAttribute("type"), "section"))) {
! 					if ((tag.getAttribute("subtype")) && (!stricmp(tag.getAttribute("subtype"), "x-preverse"))) {
  						hide = true;
  						preverse = true;