Mulitple ROs with No Units trying to eliminate duplicate Units

This commit is contained in:
Rich 2015-02-16 19:28:11 +00:00
parent fc95275902
commit 75f8bd9584

View File

@ -1495,8 +1495,7 @@ namespace Volian.Controls.Library
if (Regex.IsMatch(mynum, @".*\\'[A-Fa-f0-9]{2,2}$"))
ind -= 4;
units = prevValue.Substring(ind+1);
//if (rtnstr.EndsWith(units) && units != "")
if (rtnstr.EndsWith(units))
if (rtnstr.EndsWith(units) && units != "")// Don't do this if there are no units
{
rtnstr = rtnstr.Replace(units, "");
}