fix typemap issue reported by Bob Marinier

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8819 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-02-15 22:55:56 +00:00
commit 6760dc7fb1
3 changed files with 33 additions and 2 deletions

View file

@ -1252,7 +1252,8 @@ String *Swig_typemap_lookup_new(const String_or_char *op, Node *node, const Stri
if (qsn) {
if (StringLen(qsn) && !Equal(qsn,pname)) {
tm = Swig_typemap_search(op,type,qsn,&mtype);
if (tm && strstr(Char(Getattr(tm,k_type)),"SWIGTYPE")) {
if (tm && (!Getattr(tm,k_pname) ||
strstr(Char(Getattr(tm,k_type)),"SWIGTYPE"))) {
tm = 0;
}
}