Commit 01063ae3 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(map_created_texts): Set result->first to the first text number that

the user requested.  Don't move it forward if the text has been deleted.
parent a5bbe555
/*
* $Id: person.c,v 0.47 1999/02/05 21:46:23 ceder Exp $
* $Id: person.c,v 0.48 1999/04/05 00:42:27 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -35,7 +35,7 @@
#endif
static const char *
rcsid = "$Id: person.c,v 0.47 1999/02/05 21:46:23 ceder Exp $";
rcsid = "$Id: person.c,v 0.48 1999/04/05 00:42:27 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -849,7 +849,6 @@ map_created_texts(Pers_no pers_no,
{
Person *pers_p;
Access acc;
Local_text_no res_first;
if (first_local_no == 0)
{
......@@ -887,9 +886,7 @@ map_created_texts(Pers_no pers_no,
return FAILURE;
}
res_first = l2g_next_key(&pers_p->created_texts, 0);
result->first = max(res_first, first_local_no);
result->first = first_local_no;
result->no_of_texts = no_of_texts;
result->l2g = &pers_p->created_texts;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment