[sword-cvs] sword/apps/windoze swdisprtf.cpp,1.15,1.16

sword@www.crosswire.org sword@www.crosswire.org
Sun, 30 Mar 2003 16:19:22 -0700


Update of /usr/local/cvsroot/sword/apps/windoze
In directory www:/tmp/cvs-serv2857/apps/windoze

Modified Files:
	swdisprtf.cpp 
Log Message:
no message

Index: swdisprtf.cpp
===================================================================
RCS file: /usr/local/cvsroot/sword/apps/windoze/swdisprtf.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** swdisprtf.cpp	16 Sep 2002 22:52:26 -0000	1.15
--- swdisprtf.cpp	30 Mar 2003 23:19:20 -0000	1.16
***************
*** 50,54 ****
  	System::AnsiString newtext, tmptext;
  	static UnicodeRTF filter;
! 	char buf[255];
  
  	module = &Module;
--- 50,54 ----
  	System::AnsiString newtext, tmptext;
  	static UnicodeRTF filter;
! 	SWBuf buf;
  
  	module = &Module;
***************
*** 62,73 ****
  	newtext = newtext + "\\pard \\nowidctlpar \\cf7\\f0 ";
  	(const char *)Module;	// force key to snap to entry before pulling out the text of the key
! 	strcpy(buf, Module.KeyText());
  	SWKey *key = Module;
  
  	// VerseKey locales are not yet UTF8, so don't try to convert them.
  	if (!SWDYNAMIC_CAST(VerseKey, key))
! 		filter.ProcessText(buf, 253, Module, &Module);
  
! 	newtext = newtext + RTFHeadingPre + buf + RTFHeadingPost + ":{\\par}";
  	tmptext = "";
  
--- 62,73 ----
  	newtext = newtext + "\\pard \\nowidctlpar \\cf7\\f0 ";
  	(const char *)Module;	// force key to snap to entry before pulling out the text of the key
! 	buf = Module.KeyText();
  	SWKey *key = Module;
  
  	// VerseKey locales are not yet UTF8, so don't try to convert them.
  	if (!SWDYNAMIC_CAST(VerseKey, key))
! 		filter.processText(buf, Module, &Module);
  
! 	newtext = newtext + RTFHeadingPre + buf.c_str() + RTFHeadingPost + ":{\\par}";
  	tmptext = "";