B2018-051 Inserting a new enhanced (non-linked) step was inserting the same HLS type as current step instead of the selected HLS type from the insert menu.
B2018-052 – The old hard space character in the enhanced document template will now be inserted as a hard space instead of a question mark
This commit is contained in:
parent
bea96c9833
commit
60bc70dbc5
@ -343,8 +343,8 @@ namespace VEPROMS.CSLA.Library
|
||||
public ItemInfo InsertSiblingBefore(string text, string number,int? type)
|
||||
{
|
||||
ItemInfo tmp = null;
|
||||
if (!IsSection && (FormatStepData.UseSmartTemplate || (MyHLS!=null && MyHLS.FormatStepData.UseSmartTemplate) || FormatStepData.UseOldTemplate))
|
||||
tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.Before, (int)MyContent.Type);
|
||||
if (!IsSection && (FormatStepData.UseSmartTemplate || (MyHLS != null && MyHLS.FormatStepData.UseSmartTemplate) || FormatStepData.UseOldTemplate))
|
||||
tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.Before, (int)((type == null) ? MyContent.Type : type)); // B2018-051 use the type passed in instead of current step type
|
||||
if (tmp == null)
|
||||
tmp = NewItemInfoFetch(ItemID, EAddpingPart.Before, number, text, type, null, null, null, DateTime.Now, Volian.Base.Library.VlnSettings.UserID);
|
||||
|
||||
@ -688,7 +688,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
ItemInfo tmp = null;
|
||||
if (!IsSection && (FormatStepData.UseSmartTemplate || (MyHLS != null && MyHLS.FormatStepData.UseSmartTemplate) || FormatStepData.UseOldTemplate))
|
||||
tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.After, (int)MyContent.Type);
|
||||
tmp = InsertSmartTemplateSteps(text, number, tmp, EAddpingPart.After, (int)((type == null)? MyContent.Type : type)); // B2018-051 use the type passed in instead of current step type
|
||||
if (tmp == null)
|
||||
tmp = NewItemInfoFetch(ItemID, EAddpingPart.After, number, text, type, null, null, null, DateTime.Now, Volian.Base.Library.VlnSettings.UserID);
|
||||
// if next exists, it is updated in SQL so we have to manually force the iteminfo updates
|
||||
|
@ -360,7 +360,10 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
// some plants (Wolf Creek, Turkey Point) have two line titles in their templates with "[(0014])" representing the hard return in the title
|
||||
if (stmp != null)
|
||||
{
|
||||
stmp = stmp.Replace("[(0014])", "\\line "); // Hard Return
|
||||
stmp = stmp.Replace("\xFFFD", @"\u160?"); // Hard Space B2018-052 replace old(from 16-bit) hardspace character with the unicode hardspace character
|
||||
}
|
||||
TPlate tp = new TPlate(level, type, start, width, row, nocol, stmp);
|
||||
_Templates.Add(tp);
|
||||
cnt++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user