No need to set the SelectedFont since it is no longer used
Use Font instead of SelectedFont which can be null if there are more than one font within the selected text
This commit is contained in:
@@ -226,7 +226,7 @@ namespace Volian.Controls.Library
|
||||
// IMPORTANT: SetLineSpacing must be set before Links, otherwise it
|
||||
// was confusing the 'handle' of the rtf box.
|
||||
//Console.WriteLine("'font',{0}", Font);
|
||||
if(Text == "")SelectionFont = Font; // Initialize SelectionFont
|
||||
//if(Text == "")SelectionFont = Font; // Initialize SelectionFont
|
||||
RTBAPI.SetLineSpacing(this, RTBAPI.ParaSpacing.PFS_EXACT);
|
||||
AddRtfText(vlntxt.StartText);
|
||||
//AddRtfStyles();
|
||||
|
Reference in New Issue
Block a user