[hyena] don't render unbound allocated children



commit 78c2c2eb680da1ec05be16cb3efe8635d79e1809
Author: Aaron Bockover <abockover novell com>
Date:   Tue Mar 9 15:38:46 2010 -0500

    don't render unbound allocated children
    
    A little lame for now as this state should be checked/enforced by
    the allocated child itself, but just check that the model index is
    less than the model row count in order to allow rendering of the
    allocated child.

 .../Hyena.Data.Gui/ListView/ListView_Rendering.cs  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index 09ca433..1e4cbe3 100644
--- a/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/src/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
@@ -479,7 +479,7 @@ namespace Hyena.Data.Gui
                 var layout_child = ViewLayout[layout_index];
                 var child_allocation = layout_child.Allocation;
 
-                if (!child_allocation.IntersectsWith (clip)) {
+                if (!child_allocation.IntersectsWith (clip) || layout_child.ModelRowIndex >= Model.Count) {
                     continue;
                 }
 



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