From f481a7f5fbe1d59554da6bb9e73704857da46fbf Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sun, 1 Nov 2015 20:12:29 -0800 Subject: [PATCH] Use the correct upper bound for restoring the font collector modes --- src/dialog_fonts_collector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog_fonts_collector.cpp b/src/dialog_fonts_collector.cpp index a5d3cf650..a7a3b1275 100644 --- a/src/dialog_fonts_collector.cpp +++ b/src/dialog_fonts_collector.cpp @@ -231,7 +231,7 @@ DialogFontsCollector::DialogFontsCollector(agi::Context *c) #endif }; collection_mode = new wxRadioBox(this, -1, _("Action"), wxDefaultPosition, wxDefaultSize, countof(modes), modes, 1); - collection_mode->SetSelection(mid(0, OPT_GET("Tool/Fonts Collector/Action")->GetInt(), 4)); + collection_mode->SetSelection(mid(0, OPT_GET("Tool/Fonts Collector/Action")->GetInt(), countof(modes))); if (c->path->Decode("?script") == "?script") collection_mode->Enable(2, false);