Backed out logic that attempted to adjust the Note and Caution tabs. Adversely affected Ginna’s Note/Caution tabs. Was put in originally for NSP but NPS’s Note tabs look better without this logic.

This commit is contained in:
John Jenko 2013-04-19 19:17:39 +00:00
parent da370ae7f2
commit 757ecf0477

View File

@ -2856,19 +2856,19 @@ namespace VEPROMS.CSLA.Library
if (TabToIdentBAdjustFont())
_MyTab.RemovedStyleUnderline = true;
}
// Since we append the bullet (IdentB) to the Caution or Note tab (like in 16-bit code)
// we need to append blank characters when there is only one Note or Caution (thus no bullet)
// in order for the Note or Caution tab to consistantly print at the same horizontal location
else if (tbformat != null && !FormatStepData.AlwaysTab && !FormatStepData.MixCautionsAndNotes
&& (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB != null
&& ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB.Length > 0))
{
int identBLen = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB.Length;
string bbstr = new string(' ', identBLen);
tbformat = tbformat + bbstr;
if (TabToIdentBAdjustFont())
_MyTab.RemovedStyleUnderline = true;
}
//// Since we append the bullet (IdentB) to the Caution or Note tab (like in 16-bit code)
//// we need to append blank characters when there is only one Note or Caution (thus no bullet)
//// in order for the Note or Caution tab to consistantly print at the same horizontal location
//else if (tbformat != null && !FormatStepData.AlwaysTab && !FormatStepData.MixCautionsAndNotes
// && (ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB != null
// && ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB.Length > 0))
//{
// int identBLen = ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB.Length;
// string bbstr = new string(' ', identBLen);
// tbformat = tbformat + bbstr;
// if (TabToIdentBAdjustFont())
// _MyTab.RemovedStyleUnderline = true;
//}
return tbformat;
}