1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-04 16:14:00 +01:00

Fix error in string comparison

This commit is contained in:
Steve Daulton
2016-02-29 13:25:43 +00:00
parent 0094c4f465
commit 4173bb1a37

View File

@@ -1381,11 +1381,11 @@ void EffectEqualization::LoadCurves(const wxString &fileName, bool append)
if(fileName == wxT("")) {
// Check if presets are up to date.
wxString eqCurvesCurrentVersion = wxString(wxT("%d.%d"), EQCURVES_VERSION, EQCURVES_REVISION);
wxString eqCurvesCurrentVersion = wxString::Format(wxT("%d.%d"), EQCURVES_VERSION, EQCURVES_REVISION);
wxString eqCurvesInstalledVersion = wxT("");
gPrefs->Read(wxT("/Effects/Equalization/PresetVersion"), &eqCurvesInstalledVersion, wxT(""));
bool needUpdate = (eqCurvesCurrentVersion == eqCurvesInstalledVersion);
bool needUpdate = (eqCurvesCurrentVersion != eqCurvesInstalledVersion);
// UpdateDefaultCurves allows us to import new factory presets only,
// or update all factory preset curves.