From 810a63a522ec5c3f05df5b2bc1cf35306bf4accb Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sun, 3 Aug 2003 02:36:46 +0000 Subject: "" svn path=/trunk/; revision=819 --- externals/grill/flext/source/flattr.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'externals/grill/flext/source/flattr.cpp') diff --git a/externals/grill/flext/source/flattr.cpp b/externals/grill/flext/source/flattr.cpp index e754c87b..6a8dafeb 100644 --- a/externals/grill/flext/source/flattr.cpp +++ b/externals/grill/flext/source/flattr.cpp @@ -120,7 +120,8 @@ void flext_base::ListAttrib(AtomList &la) const typedef std::set AttrList; AttrList list[2]; - for(int i = 0; i <= 1; ++i) { + int i; + for(i = 0; i <= 1; ++i) { ItemCont *a = i?attrhead:clattrhead; if(a) { for(int ai = 0; ai < a->Size(); ++ai) { @@ -246,6 +247,13 @@ bool flext_base::SetAttrib(AttrItem *a,int argc,const t_atom *argv) } else ok = false; break; + case a_bool: + if(argc == 1 && CanbeBool(argv[0])) { + any.bt = GetABool(argv[0]); + ((methfun_1)a->fun)(this,any); + } + else ok = false; + break; case a_LIST: any.vt = &(la(argc,argv)); ((methfun_1)a->fun)(this,any); @@ -283,6 +291,12 @@ bool flext_base::GetAttrib(AttrItem *a,AtomList &la) const SetInt(la[0],any.it); break; } + case a_bool: { + ((methfun_1)a->fun)(const_cast(this),any); + la(1); + SetBool(la[0],any.bt); + break; + } case a_symbol: { ((methfun_1)a->fun)(const_cast(this),any); la(1); -- cgit v1.2.1