diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-09-20 23:59:20 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-09-20 23:59:20 +0200 |
| commit | 4b2f1fd3e9aef7efcd55f0f52ad56d767a6c26d5 (patch) | |
| tree | 30d479464df92f82075429967824da472507a551 | |
| parent | 8974245c4659d9e0c5def4d6783d2d11ff798124 (diff) | |
Fix example names in prefs (#2612).
| -rw-r--r-- | src/wx/name_format_editor.cc | 4 |
1 files 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) { |
