[longomatch] Fix listing of players by column and not by row
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix listing of players by column and not by row
- Date: Wed, 25 Jul 2012 11:44:35 +0000 (UTC)
commit f621dc9b6b21ca3722191f135cde83ab443c09cc
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Jul 23 21:57:00 2012 +0200
Fix listing of players by column and not by row
LongoMatch.GUI/Gui/Component/PlayersTagger.cs | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Component/PlayersTagger.cs b/LongoMatch.GUI/Gui/Component/PlayersTagger.cs
index 27f90ec..0155f20 100644
--- a/LongoMatch.GUI/Gui/Component/PlayersTagger.cs
+++ b/LongoMatch.GUI/Gui/Component/PlayersTagger.cs
@@ -90,10 +90,10 @@ namespace LongoMatch.Gui.Component
button.Toggled += OnButtonToggled;
button.Show();
- uint row_top =(uint)(i%localtable.NRows);
- uint row_bottom = (uint) row_top+1 ;
- uint col_left = (uint) i/localtable.NRows;
- uint col_right = (uint) col_left+1 ;
+ uint row_top =(uint)(i / table.NColumns);
+ uint row_bottom = (uint) row_top + 1 ;
+ uint col_left = (uint) i % table.NColumns;
+ uint col_right = (uint) col_left + 1 ;
table.Attach(button,col_left,col_right,row_top,row_bottom);
checkButtonsDict.Add(button, player);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]