[banshee/grid: 344/346] [grid] don't render unbound allocated children
- From: Aaron Bockover <abock src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/grid: 344/346] [grid] don't render unbound allocated children
- Date: Tue, 9 Mar 2010 20:42:31 +0000 (UTC)
commit bcd0ee76e2d553bb0f2e0ed8c432f5471fdde5ff
Author: Aaron Bockover <abockover novell com>
Date: Tue Mar 9 15:38:46 2010 -0500
[grid] 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/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs b/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
index 09ca433..1e4cbe3 100644
--- a/src/Libraries/Hyena.Gui/Hyena.Data.Gui/ListView/ListView_Rendering.cs
+++ b/src/Libraries/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]