From a111ce248be0420be382a9c5d644d394939cae82 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 9 Aug 2005 10:31:08 +0000 Subject: small fixes svn path=/trunk/; revision=3414 --- externals/grill/absattr/absattr.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/externals/grill/absattr/absattr.cpp b/externals/grill/absattr/absattr.cpp index 922cba03..1194dea9 100644 --- a/externals/grill/absattr/absattr.cpp +++ b/externals/grill/absattr/absattr.cpp @@ -106,13 +106,15 @@ protected: void SetAttr(const t_symbol *attr,int argc,const t_atom *argv) { - if(argc) - attrs[attr].Set(argc,argv,0,true); + if(argc) { + AtomList &lst = attrs[attr]; + lst.Set(argc,argv,0,true); + } else attrs.erase(attr); } - static IsAttr(const t_atom &at) { return IsSymbol(at) && *GetString(at) == '@'; } + static bool IsAttr(const t_atom &at) { return IsSymbol(at) && *GetString(at) == '@'; } void Process(int argc,const t_atom *argv) { -- cgit v1.2.1