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:
jjenko committed 2013-01-09 19:09:59 +00:00
1 parent e8cfca25c6
commit e95c0aa52d
2 files changed
+19 -5

No files matched your search

@@ -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);
}