From f83f8b73a0bc62d7b12d5ec1f8870c90a6961d6e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 22 Apr 2014 12:35:41 -0700 Subject: [PATCH] Hide the CPS value if it's over 100 --- src/grid_column.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grid_column.cpp b/src/grid_column.cpp index 551646979..1f3f06d3f 100644 --- a/src/grid_column.cpp +++ b/src/grid_column.cpp @@ -286,7 +286,7 @@ public: void Paint(wxDC &dc, int x, int y, const AssDialogue *d, const agi::Context *) const { int cps = CPS(d); - if (cps < 0) return; + if (cps < 0 || cps > 100) return; wxString str = std::to_wstring(cps); wxSize ext = dc.GetTextExtent(str);