B2013-002 fixed the logic that uses RevDate.

Added logic to  only show the revision date field if the RevDate flag was set to true in the current format.
This commit is contained in:
2013-01-09 19:09:59 +00:00
parent e8cfca25c6
commit e95c0aa52d
2 changed files with 19 additions and 5 deletions

View File

@@ -1250,7 +1250,7 @@ namespace Volian.Print.Library
if ((MySection.ActiveFormat.PlantFormat.FormatData.PrintData.DoRevDate && Rev.Contains("/"))
|| (MySection.ActiveFormat.PlantFormat.FormatData.PrintData.RevDateWithForwardSlash && Rev.Contains("\\")))
{
int indx = Rev.IndexOf(MySection.ActiveFormat.PlantFormat.FormatData.PrintData.DoRevDate?'/':'\\');
int indx = Rev.IndexOf(MySection.ActiveFormat.PlantFormat.FormatData.PrintData.RevDateWithForwardSlash ? '\\' : '/');
if (match.Value == "{REV}") return Rev.Substring(0,indx);
return Rev.Substring(indx+1);
}