This commit is contained in:
2011-03-07 13:20:00 +00:00
parent c04a3a165b
commit 8f5b541aca
2 changed files with 16 additions and 5 deletions

View File

@@ -581,7 +581,15 @@ namespace Volian.Controls.Library
e.Style.BackColor = solid;
// check whether the cell contains RTF
string rtfText = this.GetDataDisplay(e.Row, e.Col).Replace(@"\~",@"\u160?");
// TODO: Can we do DisplayText() in here??
//DisplayText(ItemInfo itemInfo, string text, bool colorLinks)
string rtfText = this.GetDataDisplay(e.Row, e.Col).Replace(@"\~", @"\u160?");
GridItem gi = Parent as GridItem;
if (gi != null)
{
DisplayText dt = new DisplayText(gi.MyItemInfo, rtfText, true);
rtfText = dt.StartText;
}
if (rtfText.StartsWith(@"{\rtf"))
{
// it does, so draw background
@@ -2160,9 +2168,9 @@ namespace Volian.Controls.Library
if (this[r, c] != null)
{
string strp = DisplayText.StaticStripRtfCommands((string)this[r, c]);
sb.Append(strp.Replace(@"\r\n", " "));
sb.Append(strp.Replace("\r\n", " "));
}
sb.Append(@"\r\n");
sb.Append("\r\n");
}
c = c + 1;
if (c == w)