diff src/content.c @ 96:988cacc01470 noffle

[svn] Preserve group last number if last article(s) cancelled
author bears
date Fri, 19 May 2000 16:18:05 +0100
parents 22b3e3dfc8c2
children 7ba337dafb2c
line wrap: on
line diff
--- a/src/content.c	Fri May 19 16:16:50 2000 +0100
+++ b/src/content.c	Fri May 19 16:18:05 2000 +0100
@@ -1,7 +1,7 @@
 /*
   content.c
 
-  $Id: content.c 81 2000-05-13 15:38:39Z bears $
+  $Id: content.c 115 2000-05-19 15:18:05Z bears $
 */
 
 #if HAVE_CONFIG_H
@@ -164,6 +164,18 @@
 
     if ( cont.first == 0 )
 	setupEmpty( name );		/* Corrupt overview file recovery */
+    else
+    {
+	int grpLast;
+
+	/*
+	  Check for end article(s) being cancelled. Need to ensure we
+	  don't re-use and article number.
+	 */
+	grpLast = Grp_last( name );
+	if ( cont.last < grpLast )
+	    extendCont( grpLast - cont.first + 1 );
+    }
 }
 
 void