Fixed problem with a negative value in a scientific notation RO value

Added logic to support an Indented Paragraph (Comanche Peak)
This commit is contained in:
2013-10-10 20:02:22 +00:00
parent 16cf8c0366
commit ff6e3626c4
2 changed files with 11 additions and 6 deletions

View File

@@ -2451,15 +2451,18 @@ namespace VEPROMS.CSLA.Library
protected void SetTabText()
{
string cltext = null;
if (IsParagraph && !IsSequential)
{
_MyTab.Text = "";
_MyTab.CleanText = "";
return;
}
int stepType = (int)(MyContent.Type % 10000);
string tbformat = IsInRNO ? FormatStepData.TabData.RNOIdentPrint : FormatStepData.TabData.IdentPrint;
string tbformate = null; // need this for background documents, to generate tab for editing.
if (IsParagraph && !IsSequential)
{
string tstr = "";
if (tbformat.Contains("{!.+?}"))
tstr = tbformat.Replace("{!.+?}", " "); // Comanche Peak Indented Paragraph
_MyTab.Text = tstr;
_MyTab.CleanText = tstr;
return;
}
if (((ActiveFormat.PlantFormat.FormatData.PurchaseOptions.Value & E_PurchaseOptions.EnhancedBackgrounds) == E_PurchaseOptions.EnhancedBackgrounds) &&
((IsHigh && FormatStepData.PageBreakOnStep) || (IsRNOPart && MyHLS.FormatStepData.PageBreakOnStep)))