This commit is contained in:
2010-03-31 16:49:11 +00:00
parent bf33f71a1a
commit eaba85067c
2 changed files with 30 additions and 27 deletions

View File

@@ -134,7 +134,9 @@ namespace DataLoader
item = Item.MakeItem(FromItem, content, content.DTS, content.UserID);
// Remove styles that user entered but are automatically done via the format
string tstr = item.MyItemInfo.RemoveRtfStyles(content.Text,fmt);
string tstr = null;
using (ItemInfo myInfo = item.MyItemInfo) // do this so that ItemInfo doesn't stay in cashe
tstr = myInfo.RemoveRtfStyles(content.Text, fmt);
if (tstr != content.Text)
{
item.MyContent.Text = tstr;