B2019-168: Change bar code for not continuous cases should only be applicable based on format flag

This commit is contained in:
2019-11-11 14:04:38 +00:00
parent 4c7d7b9621
commit 7b930fd143
10 changed files with 11 additions and 1 deletions

View File

@@ -131,7 +131,9 @@ namespace Volian.Print.Library
// the separator must exist and the previous must have a change bar.
// B2019-055 added check if the previous caution or note have the same type number
if ((sep != "") && (tmp.Text == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar && (parent.MyItemInfo.MyContent.Type == parent.MyItemInfo.MyPrevious.MyContent.Type))
// B2019-168 added format flag 'SeparateChangeBarsForDiffNotesCautions' to control when fix for B2019-055 would take affect
if ((sep != "") && (tmp.Text == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar
&& (!parent.MyItemInfo.ActiveFormat.PlantFormat.FormatData.ProcData.ChangeBarData.SeparateChangeBarsForDiffNotesCautions || parent.MyItemInfo.MyContent.Type == parent.MyItemInfo.MyPrevious.MyContent.Type))
{
if (MyPageHelper.MyParagraphs.ContainsKey(parent.MyItemInfo.MyPrevious.ItemID))
{