Skip to content

Commit

Permalink
Merge pull request xbmc#4440 from Montellese/settings_fixes
Browse files Browse the repository at this point in the history
Two fixes in the settings system
  • Loading branch information
t-nelson committed Mar 21, 2014
2 parents 057c0ff + e8c034c commit 47b2b6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xbmc/settings/lib/Setting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ bool CSettingNumber::fromString(const std::string &strValue, double &value)
return false;

char *end = NULL;
value = (int)strtod(strValue.c_str(), &end);
value = strtod(strValue.c_str(), &end);
if (end != NULL && *end != '\0')
return false;

Expand Down
2 changes: 1 addition & 1 deletion xbmc/settings/windows/GUIControlSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ bool CGUIControlEditSetting::InputValidation(const std::string &input, void *dat
if (editControl == NULL || editControl->GetSetting() == NULL)
return true;

return editControl->GetSetting()->FromString(input);
return editControl->GetSetting()->CheckValidity(input);
}

CGUIControlSeparatorSetting::CGUIControlSeparatorSetting(CGUIImage *pImage, int id)
Expand Down

0 comments on commit 47b2b6e

Please sign in to comment.