--- parser3/src/classes/table.C 2001/04/20 14:18:30 1.63 +++ parser3/src/classes/table.C 2001/04/23 10:58:27 1.64 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: table.C,v 1.63 2001/04/20 14:18:30 paf Exp $ + $Id: table.C,v 1.64 2001/04/23 10:58:27 paf Exp $ */ #include "pa_config_includes.h" @@ -186,15 +186,15 @@ static void _offset(Request& r, const St } } -/// @test $a.menu{ $a[123] } static void _menu(Request& r, const String& method_name, MethodParams *params) { Value& body_code=params->get_junction(0, "body must be code"); Value *delim_code=params->size()==2?¶ms->get(1):0; - Table& table=static_cast(r.self)->table(); + VTable& vtable=*static_cast(r.self); + Table& table=vtable.table(); bool need_delim=false; - int saved_current=table.current(); + vtable.lock(); int saved_current=table.current(); for(int row=0; row