Fix incorrect symbol clash error in C# and Java when using %rename for enums

When using using 'simple enum' wrappers
This commit is contained in:
William S Fulton 2014-11-21 19:50:23 +00:00
commit fcef37d682
4 changed files with 17 additions and 2 deletions

View file

@ -1308,7 +1308,7 @@ public:
else
Printf(scope, ".%s", Getattr(parent, "sym:name"));
}
if (!addSymbol(name, n, scope))
if (!addSymbol(symname, n, scope))
return SWIG_ERROR;
const String *csattributes = Getattr(n, "feature:cs:attributes");