- Fixed segfault caused by combined map lookup and method call.
This commit is contained in:
Paul Beckingham 2014-04-16 00:12:18 -04:00
parent 8d10d81198
commit fff1ae2d6e

View file

@ -629,8 +629,13 @@ void A3t::findAttributeModifier ()
(*i)->attribute ("modifier", modifier);
(*i)->attribute ("sense", sense);
if (context.columns[canonical]->modifiable ())
std::map <std::string, Column*>::const_iterator col;
col = context.columns.find (canonical);
if (col != context.columns.end () &&
col->second->modifiable ())
{
(*i)->tag ("MODIFIABLE");
}
}
}
}