--- parser3/src/classes/string.C 2003/02/20 14:53:34 1.125.2.10 +++ parser3/src/classes/string.C 2003/02/24 15:36:33 1.125.2.11 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_STRING_C="$Date: 2003/02/20 14:53:34 $"; +static const char* IDENT_STRING_C="$Date: 2003/02/24 15:36:33 $"; #include "classes.h" #include "pa_vmethod_frame.h" @@ -322,7 +322,7 @@ static void _match(Request& r, StringPtr ValuePtr result; // matched // not (just matched[3=pre/match/post], no substrings) or Global search - if(table->columns()->count()>3 || was_global) + if(was_global || (table && table->columns()->count()>3)) result=ValuePtr(new VTable(table/*TODO: clone this when table would be stacked!*/)); // table of pre/match/post+substrings else result=ValuePtr(new VBool(table));