X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-var-sheet.c;h=70e1044fcb25ed9d46dbc2fcc8d2232c3687fda6;hp=a4f082cca50bddb354b2559ce725896ba9c8c4fe;hb=27b5e5cbc5517702d5660e2120013aa80ed6f97b;hpb=38d5e09c01ddffc98430c3c55ed3ccb821180cbf diff --git a/src/ui/gui/psppire-var-sheet.c b/src/ui/gui/psppire-var-sheet.c index a4f082cc..70e1044f 100644 --- a/src/ui/gui/psppire-var-sheet.c +++ b/src/ui/gui/psppire-var-sheet.c @@ -251,6 +251,9 @@ traverse_cell_callback (PsppireSheet *sheet, gint n_vars = psppire_var_store_get_var_cnt (var_store); + if (new_cell->col >= PSPPIRE_VAR_STORE_n_COLS) + return TRUE; + if (new_cell->row >= n_vars && !var_sheet->may_create_vars) return TRUE;