piker00 / simdesign

Automatically exported from code.google.com/p/simdesign
1 stars 0 forks source link

HasAttribute() is case sensitive #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If I check existing "ABC" attribute by "abc" string then method HasAttribute() 
return False.
But method GetAttributeByName() return proper value. 

Problem is with compare way, in HasAttribute is:

  if AttributeName[i] = AName then

but in GetAttributeByName() is:

  if Utf8CompareText(A.Name, AName) = 0 then

Please update HasAttribute to use Utf8CompareText function()

Original issue reported on code.google.com by jac....@gmail.com on 8 Nov 2014 at 8:44