Fixed logic to correctly lookup Alarm regardless of the use of hard hyphens or dashes

This commit is contained in:
Rich 2016-07-08 15:55:47 +00:00
parent f96212221d
commit 2fce2064b4

View File

@ -1360,6 +1360,11 @@ namespace Volian.Print.Library
string accpgid = accpageid;
//accpgid = accpgid.Replace("-HIGH", "-HI").Replace("-LOW", "-LO").Replace("_HIGH", "-HI").Replace("_LOW", "-LO").Replace(@"\u8209?", "-");
string val = myLookup.GetROValueByAccPagID("<" + accpgid + "." + multiid + ">", MySection.MyDocVersion.DocVersionConfig.RODefaults_setpointprefix, MySection.MyDocVersion.DocVersionConfig.RODefaults_graphicsprefix);
if (val == null)
{
accpgid = accpgid.Replace(@"\u8209?", "-");
val = myLookup.GetROValueByAccPagID("<" + accpgid + "." + multiid + ">", MySection.MyDocVersion.DocVersionConfig.RODefaults_setpointprefix, MySection.MyDocVersion.DocVersionConfig.RODefaults_graphicsprefix);
}
if (!deflt.StartsWith("[") && val != null)
{
val = val.Replace("[xB3]", "\xB3");