Fixed logic to correctly lookup Alarm regardless of the use of hard hyphens or dashes
This commit is contained in:
parent
f96212221d
commit
2fce2064b4
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user