Commit adefe3bc authored by Per Cederqvist's avatar Per Cederqvist
Browse files

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

user requested.  Don't move it forward if the text has been deleted.
parent 01063ae3
/*
* $Id: text.c,v 0.61 1999/02/05 21:53:21 ceder Exp $
* $Id: text.c,v 0.62 1999/04/05 00:42:52 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -34,7 +34,7 @@
#endif
static const char *
rcsid = "$Id: text.c,v 0.61 1999/02/05 21:53:21 ceder Exp $";
rcsid = "$Id: text.c,v 0.62 1999/04/05 00:42:52 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -3197,7 +3197,6 @@ local_to_global(Conf_no conf_no,
Text_mapping *result)
{
Conference * conf_c;
Local_text_no res_first;
Access acc;
if (first_local_no == 0)
......@@ -3240,9 +3239,7 @@ local_to_global(Conf_no conf_no,
return FAILURE;
}
res_first = l2g_next_key(&conf_c->texts, 0);
result->first = max(res_first, first_local_no);
result->first = first_local_no;
result->no_of_texts = no_of_texts;
result->l2g = &conf_c->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