--- parser3/src/main/pa_table.C 2024/09/21 23:51:04 1.76 +++ parser3/src/main/pa_table.C 2024/11/16 02:57:05 1.78 @@ -1,13 +1,13 @@ /** @file Parser: table class. - Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian */ #include "pa_table.h" -volatile const char * IDENT_PA_TABLE_C="$Id: pa_table.C,v 1.76 2024/09/21 23:51:04 moko Exp $" IDENT_PA_TABLE_H; +volatile const char * IDENT_PA_TABLE_C="$Id: pa_table.C,v 1.78 2024/11/16 02:57:05 moko Exp $" IDENT_PA_TABLE_H; #include "pa_exception.h" @@ -88,7 +88,7 @@ void Table::remove_current(){ throw Exception(PARSER_RUNTIME, 0, "invalid current row"); } remove(fcurrent); - if(fcurrent==count() && count()>0){ + if(fcurrent>=count() && count()>0){ fcurrent--; } }