[Aptitude-devel] r3100 - in branches/aptitude-0.3/aptitude: . src/vscreen

Daniel Burrows dburrows@costa.debian.org
Tue, 26 Apr 2005 23:19:03 +0000


Author: dburrows
Date: Tue Apr 26 23:19:00 2005
New Revision: 3100

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/vscreen/fragment.cc
Log:
Return the actual size, not the boolean variable that tracks whether
the size is stale, from sequence_fragment::trailing_width.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Tue Apr 26 23:19:00 2005
@@ -1,5 +1,11 @@
 2005-04-26  Daniel Burrows  <dburrows@debian.org>
 
+	* src/vscreen/fragment.cc:
+
+	  Fix sequence_fragment::trailing_width to return the correct
+	  value (previously, it would always return 0, due to an
+	  accidental bool -> int conversion).
+
 	* src/solution_dialog.cc:
 
 	  Make the solution dialog disappear when the user presses the

Modified: branches/aptitude-0.3/aptitude/src/vscreen/fragment.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/fragment.cc	(original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/fragment.cc	Tue Apr 26 23:19:00 2005
@@ -152,7 +152,7 @@
 	trailing_width_stale=false;
       }
 
-    return trailing_width_stale;
+    return trailing_width_cache;
   }
 
   bool final_newline() const