PlayerStats: Fix sorting in # Hands col

Patch from Almer Visser.

Using %d causes Gtk to order as a string rather than a number.

Convert to %1.0f and issue disappears.
This commit is contained in:
Worros 2010-03-04 17:50:51 +08:00 committed by Eratosthenes
parent 519494878e
commit a698b2e16d

View File

@ -92,7 +92,7 @@ class GuiPlayerStats (threading.Thread):
, ["hand", False, "Hand", 0.0, "%s", "str"] # true not allowed for this line
, ["plposition", False, "Posn", 1.0, "%s", "str"] # true not allowed for this line (set in code)
, ["pname", False, "Name", 0.0, "%s", "str"] # true not allowed for this line (set in code)
, ["n", True, "Hds", 1.0, "%d", "str"]
, ["n", True, "Hds", 1.0, "%1.0f", "str"]
, ["avgseats", False, "Seats", 1.0, "%3.1f", "str"]
, ["vpip", True, "VPIP", 1.0, "%3.1f", "str"]
, ["pfr", True, "PFR", 1.0, "%3.1f", "str"]