From: Ricardo Markiewicz Date: Thu, 27 May 2004 02:04:28 +0000 (+0000) Subject: Detalles de la lista. X-Git-Tag: svn_import_r684~167 X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/commitdiff_plain/6fbc46ce4632b59358a971178cabe01ab9e639b3?ds=inline;hp=8c383afd3c15f7a916cc14f43066a04d9a3e7612 Detalles de la lista. --- diff --git a/emufs_gui/lista.c b/emufs_gui/lista.c index 6b62d22..a3ca282 100644 --- a/emufs_gui/lista.c +++ b/emufs_gui/lista.c @@ -106,7 +106,7 @@ void print_lista(t_Lista *lst, t_Fila *fil, int sel) sel++; while (fil) { /* Si no entran mas filas salgo! */ - if (y>=(lst->h-1)) break; + if (y>=(lst->h)) break; col = lst->columnas; /* Imprimo los datos de cada columna */ i = 0; @@ -167,7 +167,7 @@ void lista_ejecutar(t_Lista *lst) } else if ((key == 'z') || (key == 'Z')) { /*offset++;*/ selected++; - if (selected >= lst->h) { + if (selected >= (lst->h-1)) { selected--; offset++; }