Skip to content
Snippets Groups Projects
Commit 6dabbd29 authored by George Nachman's avatar George Nachman
Browse files

Don't allow blur values over 26 on high sierra. Issue 6115

parent cf31428e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -2173,7 +2173,13 @@ static void SetAgainstGrainDim(BOOL isVertical, NSSize *dest, CGFloat value) {
}
}
if (count > 0) {
return sum / count;
if (@available(macOS 10.13, *)) {
// Issue 6115. It turns red for values over 26. When I drop 10.12 support I can adjust
// the slider to not go above 26.
return MIN(26, sum / count);
} else {
return sum / count;
}
} else {
// This shouldn't actually happen, but better safe than divide by zero.
return 2.0;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment