Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

masks/circle: save sanitized values to config file #2049

Merged
merged 1 commit into from
Feb 2, 2019

Conversation

moy
Copy link
Contributor

@moy moy commented Feb 1, 2019

If ever the darktablerc files gets incorrect values, like negative
ones, the code was applying a sanitization, but not saving the
sanitized values. As a result, the next call to dt_conf_get_float was
restoring the un-sanitized value.

Fix this by calling dt_conf_set_float to save the sanitized values,
like we did in liquify in 951bd8c (liquify: fix mouse wheel on first
launch, 2018-11-28).

This should not be needed in principle, but makes dt a bit more robust
to mis-configuration.

If ever the darktablerc files gets incorrect values, like negative
ones, the code was applying a sanitization, but not saving the
sanitized values. As a result, the next call to dt_conf_get_float was
restoring the un-sanitized value.

Fix this by calling dt_conf_set_float to save the sanitized values,
like we did in liquify in 951bd8c (liquify: fix mouse wheel on first
launch, 2018-11-28).

This should not be needed in principle, but makes dt a bit more robust
to mis-configuration.
@TurboGit
Copy link
Member

TurboGit commented Feb 2, 2019

Sounds good! Thanks Matthieu.

@TurboGit TurboGit merged commit 74f03fd into darktable-org:master Feb 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants