From 4b2f1fd3e9aef7efcd55f0f52ad56d767a6c26d5 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 20 Sep 2023 23:59:20 +0200 Subject: [PATCH] Fix example names in prefs (#2612). --- src/wx/name_format_editor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/name_format_editor.cc b/src/wx/name_format_editor.cc index dbed694ef..67e2517be 100644 --- a/src/wx/name_format_editor.cc +++ b/src/wx/name_format_editor.cc @@ -77,9 +77,9 @@ NameFormatEditor::update_example () return; } - _name.set_specification (careful_string_filter(wx_to_std(_specification->GetValue()))); + _name.set_specification(wx_to_std(_specification->GetValue())); - auto example = wxString::Format (_("e.g. %s"), std_to_wx (_name.get (_examples, _suffix))); + auto example = wxString::Format(_("e.g. %s"), std_to_wx(careful_string_filter(_name.get(_examples, _suffix)))); wxString wrapped; for (size_t i = 0; i < example.Length(); ++i) { if (i > 0 && (i % 40) == 0) { -- 2.30.2