mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-06 14:52:34 +02:00
Translated time (& freq & bandwidth) formats in numeric controls...
... This had been done correctly in the popup menu to change the format, but not in the control itself.
This commit is contained in:
parent
9481587fa8
commit
d852bd3783
@ -625,8 +625,10 @@ NumericConverter::NumericConverter(Type type,
|
||||
SetValue(value); // mValue got overridden to -1 in ControlsToValue(), reassign
|
||||
}
|
||||
|
||||
void NumericConverter::ParseFormatString( const wxString & format)
|
||||
void NumericConverter::ParseFormatString( const wxString & untranslatedFormat)
|
||||
{
|
||||
auto &format = ::wxGetTranslation( untranslatedFormat );
|
||||
|
||||
mPrefix = wxT("");
|
||||
mFields.clear();
|
||||
mDigits.clear();
|
||||
|
@ -88,7 +88,7 @@ public:
|
||||
virtual void ControlsToValue();
|
||||
|
||||
private:
|
||||
void ParseFormatString(const wxString & format);
|
||||
void ParseFormatString(const wxString & untranslatedFormat);
|
||||
|
||||
public:
|
||||
void PrintDebugInfo();
|
||||
|
Loading…
x
Reference in New Issue
Block a user