[sword-svn] r47 - trunk/src/gui

bdrake at www.crosswire.org bdrake at www.crosswire.org
Thu Dec 6 05:16:37 MST 2007


Author: bdrake
Date: 2007-12-06 05:16:36 -0700 (Thu, 06 Dec 2007)
New Revision: 47

Modified:
   trunk/src/gui/SimpleNavigator.cpp
Log:


Modified: trunk/src/gui/SimpleNavigator.cpp
===================================================================
--- trunk/src/gui/SimpleNavigator.cpp	2007-12-04 16:34:20 UTC (rev 46)
+++ trunk/src/gui/SimpleNavigator.cpp	2007-12-06 12:16:36 UTC (rev 47)
@@ -238,7 +238,11 @@
 		modKey->setText(key.c_str()); // set the key itself 
 		// force a parse of the entry
 		mod->RenderText(); 
-		MessageBox(0, strtowstr(mod->getEntryAttributes()["Footnote"][footnoteNumber]["body"]), L"Footnote", MB_OK);
+		SWBuf body = mod->getEntryAttributes()["Footnote"][footnoteNumber]["body"];
+		// strip out html if present
+		body = mod->StripText(body.c_str());
+		// not sure if MessageBox can display html - if it can, re-think this some day
+		MessageBox(0, strtowstr(body), L"Footnote", MB_OK);
 		}
 //comment next line out in release version
 else MessageBox(0, strtowstr("Unable to show reference"), L"url clicked", MB_OK); // catch all




More information about the sword-cvs mailing list