2020-028, B2020-029, B2020-030: Pdf Links in Supplemental Information pages causes crash or pages to not print.
This commit is contained in:
parent
166e2e04f2
commit
c0246d2421
@ -385,20 +385,22 @@ namespace Volian.Print.Library
|
||||
if (_Ti.MyItemToID.MyProcedure.ItemID == from.MyProcedure.ItemID &&
|
||||
!((from.ActiveSection.MyConfig as SectionConfig).Section_IsFoldout == "Y")) //C2019-042 Section_IsFoldout checks Section Number, Section Title, and use of check box
|
||||
{ // Local Go To
|
||||
if (_Ti.MyItemToID.MyContent.Type > 9999) // internal to this file
|
||||
// B2020-028, 029 and 030: all were related to print of supplemental information when printing with
|
||||
// pdf links. The pdf links in the temporary supinfo pdf caused a crash on save of file because they didn't exist.
|
||||
if (_Ti.MyItemToID.MyContent.Type > 9999 && !from.IsInSupInfo) // internal to this file
|
||||
{
|
||||
chk.SetLocalGoto(string.Format("ItemID={0}", tiDefault.ItemID));
|
||||
chk.SetBackground(Color.CYAN);
|
||||
chk.SetBackground(new Color(System.Drawing.Color.LightCyan));
|
||||
}
|
||||
}
|
||||
else if (_Ti != null) // Remote Go To
|
||||
else if (_Ti != null && !from.IsInSupInfo) // Remote Go To. Added SupInfo check for B2020 bugs (see above)
|
||||
{
|
||||
chk.SetRemoteGoto(_Ti.MyItemToID.MyProcedure.DisplayNumber.Replace("/", "_") + ".pdf", string.Format("ItemID={0}", tiDefault.ItemID));
|
||||
chk.SetBackground(new Color(System.Drawing.Color.PeachPuff));
|
||||
}
|
||||
}
|
||||
else if (_linkType == 1 && _Roui != null) // referenced object
|
||||
else if (_linkType == 1 && _Roui != null && !_Roui.MyContent.ContentItems[0].IsInSupInfo) // referenced object. Added SupInfo check for B2020 bugs (see above)
|
||||
{
|
||||
if (_Roui.ROID.Substring(0, 4) != "FFFF")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user