Added logic so that Prerequisite Steps (transition type) would be removed only when printing

This commit is contained in:
John Jenko 2014-10-23 18:00:16 +00:00
parent 9d2e558451
commit 73ca054fa2

View File

@ -119,7 +119,7 @@ namespace Volian.Controls.Library
_FieldToEdit = fieldToEdit; _FieldToEdit = fieldToEdit;
_MyItemInfo = itemInfo; _MyItemInfo = itemInfo;
OriginalText = InfoText; OriginalText = InfoText;
if (OriginalText.Contains("Prerequisite")) if (OriginalText.Contains("Prerequisite") && epMode == E_EditPrintMode.Print)
OriginalText = Regex.Replace(OriginalText, @"\\{Prerequisite Step: .*?\\}", ""); OriginalText = Regex.Replace(OriginalText, @"\\{Prerequisite Step: .*?\\}", "");
TextFont = itemInfo.GetItemFont();//GetItemFont(); TextFont = itemInfo.GetItemFont();//GetItemFont();
// if in print mode, and this is the HLS of a smart template (checklist formats) see if the hls // if in print mode, and this is the HLS of a smart template (checklist formats) see if the hls