[Aptitude-svn-commit] r3761 - in branches/aptitude-0.3/aptitude: . src/vscreen

Daniel Burrows dburrows at costa.debian.org
Mon Aug 8 22:46:56 UTC 2005


Author: dburrows
Date: Mon Aug  8 22:46:53 2005
New Revision: 3761

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/vs_radiogroup.cc
Log:
Fix a thinko that caused an assertion failure.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Mon Aug  8 22:46:53 2005
@@ -1,5 +1,11 @@
 2005-08-08  Daniel Burrows  <dburrows at debian.org>
 
+	* src/vscreen/vs_radiogroup.cc:
+
+	  Fix a thinko: when we're removing the last button in a radio
+	  group, of course there should be exactly ONE button in the
+	  group, not exactly ZERO.
+
 	* src/vscreen/vs_table.cc:
 
 	  Be more careful in handling iterators so that the table routines

Modified: branches/aptitude-0.3/aptitude/src/vscreen/vs_radiogroup.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/vs_radiogroup.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/vs_radiogroup.cc	Mon Aug  8 22:46:53 2005
@@ -70,7 +70,7 @@
 	    else if(i+1<items.size())
 	      button_pressed(i+1);
 	    else
-	      assert(items.size() == 0);
+	      assert(items.size() == 1);
 	  }
 
 	if(i==items.size()-1)



More information about the Aptitude-svn-commit mailing list