mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-06 06:31:07 +01:00
Define and use ShuttleGui::Validator
This commit is contained in:
@@ -551,4 +551,9 @@ bool FloatingPointValidatorBase::ValidatePrecision(const wxString& s) const
|
||||
return ( (int)(posExp - posSep) - 1 <= (int)m_precision );
|
||||
}
|
||||
|
||||
double RoundValue(int precision, double value)
|
||||
{
|
||||
return Internat::CompatibleToDouble( Internat::ToString(value, precision) );
|
||||
}
|
||||
|
||||
#endif // wxUSE_VALIDATORS && wxUSE_TEXTCTRL
|
||||
|
||||
Reference in New Issue
Block a user