[banshee: 13/61] [ListView] Fix freeze in RecalculateColumnSize (BGO#597337)



commit d40e0c40afb115b53710403531496e10ba2e9a7c
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Tue Oct 6 12:43:43 2009 +0200

    [ListView] Fix freeze in RecalculateColumnSize (BGO#597337)

 .../Hyena.Data.Gui/ListView/ListView_Header.cs     |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
index ef150bd..707a6e7 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
+++ b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Header.cs
@@ -191,7 +191,7 @@ namespace Hyena.Data.Gui
                 
                 double remaining_width = RecalculateColumnSizes (header_width, header_width);
                 
-                while (remaining_width != 0 && elastic_columns.Count > 0) {
+                while (remaining_width > 0 && elastic_columns.Count > 0) {
                     double total_elastic_width = 0.0;
                     foreach (int i in elastic_columns) {
                         total_elastic_width += column_cache[i].ElasticWidth;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]