Skip to content

Commit 5c980ed

Browse files
committed
Removed unused code
1 parent 24417fe commit 5c980ed

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

rtf/RtfBuilder.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,6 @@ internal void AddText(string text, Color bg, Color fg, bool endLine, double font
207207
_fgPrevColor = fg;
208208
}
209209

210-
if (_contentTextAscii.Length.Equals(0) && !_pageSetup)
211-
{
212-
if (bg.IsEmpty && !_bgPrevColor.IsEmpty)
213-
_contentTextRtf.Append(_colorTableManager.GetIndex(bg, Color_Appearance.Background));
214-
if (fg.IsEmpty && !_fgPrevColor.IsEmpty)
215-
_contentTextRtf.Append(_colorTableManager.GetIndex(fg, Color_Appearance.Foreground));
216-
}
217-
218-
219210
SetSize(fontPtSize);
220211

221212
_contentTextAscii.Append(text);

0 commit comments

Comments
 (0)