text entry: replace placeholders on save, so they don't end up in

SMs.
This commit is contained in:
Glenn Maynard
2003-01-06 07:43:14 +00:00
parent 2e50ac566d
commit e5cd3a0800
6 changed files with 39 additions and 11 deletions
+5 -3
View File
@@ -190,16 +190,18 @@ void BitmapText::DrawChars()
}
/* sText is UTF-8. */
void BitmapText::SetText( CString sText )
void BitmapText::SetText( CString sText, bool DoSubst )
{
ASSERT( m_pFont );
if(DoSubst)
FontManager::ReplaceMarkers(sText);
if(m_szText == sText)
return;
m_szText = sText;
FontManager::ReplaceMarkers(sText);
/* Break the string into lines. */
m_szTextLines.clear();
m_iLineWidths.clear();