Replace <u> within a PC P/C PSI Value with the current unit number.
This commit is contained in:
parent
570404687c
commit
1926a435b0
@ -2008,12 +2008,16 @@ namespace Volian.Print.Library
|
||||
if (qindx == -1)
|
||||
{
|
||||
val = procConfig.GetValue("PSI", token.Substring(4, token.Length - 5));
|
||||
|
||||
if(val.Contains("<u>")) // Replace <u> with the current unit number
|
||||
{
|
||||
string unbr3 = MySection.MyDocVersion.DocVersionConfig.Unit_Number;
|
||||
val=val.Replace("<u>", unbr3??"");
|
||||
}
|
||||
// MaxWidth is used to define width that the PSI text spans x-direction on page. If it is
|
||||
// defined, see if the text is too wide for a single line (SplitTextMaxWidth). The
|
||||
// AdjustTopMarginForMultLinePageListItem contains the y-adjustment that must be considered
|
||||
// in the TopMargin if the PSI text split onto more than one line.
|
||||
if ((pageItem.MaxWidth??0)>0 || (pageItem.MaxWidthCurPage??0)>0)
|
||||
if ((pageItem.MaxWidth ?? 0) > 0 || (pageItem.MaxWidthCurPage ?? 0) > 0)
|
||||
{
|
||||
int locwid = ((pageItem.MaxWidth??0)>0)?(int)pageItem.MaxWidth:(int)pageItem.MaxWidthCurPage;
|
||||
AdjustTopMarginForMultiLinePageListItems = SplitTextMaxWidth(svgGroup, pageItem, val, locwid, token, ref plstr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user