From 4173bb1a37fd505582a9281195c52a4a1bcd8c17 Mon Sep 17 00:00:00 2001 From: Steve Daulton Date: Mon, 29 Feb 2016 13:25:43 +0000 Subject: [PATCH] Fix error in string comparison --- src/effects/Equalization.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/Equalization.cpp b/src/effects/Equalization.cpp index 7dbfa1190..e60bd9899 100644 --- a/src/effects/Equalization.cpp +++ b/src/effects/Equalization.cpp @@ -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.