Debug output save and show
Added StepRTB Closed logic to disposing Use the correct font for sections and procedures.
This commit is contained in:
@@ -787,7 +787,7 @@ namespace Volian.Controls.Library
|
||||
myVFG.Visible = false;
|
||||
// myRTB.Font = new Font("Arial", 12, FontStyle.Regular);
|
||||
// myRTB.Text = cai.Text;
|
||||
myRTB.SetupRichText(cai.Text, MyItemInfo.FormatStepData.Font);
|
||||
myRTB.SetupRichText(cai.Text, MyItemInfo.FormatStepData == null ? MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font : MyItemInfo.FormatStepData.Font);
|
||||
}
|
||||
}
|
||||
if (tn.Tag is ItemAuditInfo)
|
||||
@@ -801,13 +801,7 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
//myRTB.Font = new Font("Arial", 12, FontStyle.Regular);
|
||||
//myRTB.Text = cai.Text;
|
||||
if (MyItemInfo.FormatStepData != null)
|
||||
myRTB.SetupRichText(cai.Text, MyItemInfo.FormatStepData.Font);
|
||||
else
|
||||
{
|
||||
myRTB.SetupRichText(cai.Text, new VE_Font(StepRTB.MyFontFamily != null ? StepRTB.MyFontFamily.Name : "arial", 12, E_Style.None, 8));
|
||||
}
|
||||
|
||||
myRTB.SetupRichText(cai.Text, MyItemInfo.FormatStepData == null ? MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font : MyItemInfo.FormatStepData.Font);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user