|
|
@@ -254,7 +254,7 @@ namespace System.Windows.Forms {
|
|
|
// Font changes always set the whole doc to that font
|
|
|
start = document.GetLine(1);
|
|
|
end = document.GetLine(document.Lines);
|
|
|
- document.FormatText(start, 1, end, end.text.Length + 1, base.Font, null, null, FormatSpecified.Font);
|
|
|
+ document.FormatText(start, 1, end, end.text.Length + 1, base.Font, null, Color.Empty, FormatSpecified.Font);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -560,7 +560,7 @@ namespace System.Windows.Forms {
|
|
|
|
|
|
document.FormatText (document.selection_start.line, document.selection_start.pos + 1,
|
|
|
document.selection_end.line, document.selection_end.pos + 1, null,
|
|
|
- new SolidBrush (value), null, FormatSpecified.Color);
|
|
|
+ new SolidBrush (value), Color.Empty, FormatSpecified.Color);
|
|
|
|
|
|
document.CharIndexToLineTag(sel_start, out document.selection_start.line, out document.selection_start.tag, out document.selection_start.pos);
|
|
|
document.CharIndexToLineTag(sel_end, out document.selection_end.line, out document.selection_end.tag, out document.selection_end.pos);
|
|
|
@@ -606,7 +606,7 @@ namespace System.Windows.Forms {
|
|
|
|
|
|
document.FormatText (document.selection_start.line, document.selection_start.pos + 1,
|
|
|
document.selection_end.line, document.selection_end.pos + 1, value,
|
|
|
- null, null, FormatSpecified.Font);
|
|
|
+ null, Color.Empty, FormatSpecified.Font);
|
|
|
|
|
|
document.CharIndexToLineTag(sel_start, out document.selection_start.line, out document.selection_start.tag, out document.selection_start.pos);
|
|
|
document.CharIndexToLineTag(sel_end, out document.selection_end.line, out document.selection_end.tag, out document.selection_end.pos);
|
|
|
@@ -1650,7 +1650,7 @@ namespace System.Windows.Forms {
|
|
|
if (rtf_line.Length > 0) {
|
|
|
document.InsertString(line, rtf_cursor_x, rtf_line.ToString());
|
|
|
document.FormatText (line, rtf_cursor_x + 1, line, rtf_cursor_x + 1 + length,
|
|
|
- font, rtf_color, null,
|
|
|
+ font, rtf_color, Color.Empty,
|
|
|
FormatSpecified.Font | FormatSpecified.Color);
|
|
|
}
|
|
|
if (newline) {
|