[sword-svn] r2461 - trunk/src/modules

scribe at crosswire.org scribe at crosswire.org
Tue Oct 13 10:33:47 MST 2009


Author: scribe
Date: 2009-10-13 10:33:47 -0700 (Tue, 13 Oct 2009)
New Revision: 2461

Modified:
   trunk/src/modules/swmodule.cpp
Log:
Skip entry attribute rendering on external buffers


Modified: trunk/src/modules/swmodule.cpp
===================================================================
--- trunk/src/modules/swmodule.cpp	2009-10-12 17:34:17 UTC (rev 2460)
+++ trunk/src/modules/swmodule.cpp	2009-10-13 17:33:47 UTC (rev 2461)
@@ -854,7 +854,13 @@
  */
 
  const char *SWModule::RenderText(const char *buf, int len, bool render) {
-	entryAttributes.clear();
+	bool savePEA = isProcessEntryAttributes();
+	if (!buf) {
+		entryAttributes.clear();
+	}
+	else {
+		processEntryAttributes(false);
+	}
 
 	static SWBuf local;
 	if (buf)
@@ -882,6 +888,8 @@
 		tmpbuf = null;
 	}
 
+	processEntryAttributes(savePEA);
+
 	return tmpbuf;
 }
 




More information about the sword-cvs mailing list