Fix integer division error with image scopes

This commit is contained in:
Campbell Barton 2015-06-16 04:15:57 +10:00
parent 3f7ea7489e
commit b633c2857f

@ -1087,6 +1087,7 @@ void scopes_update(Scopes *scopes, ImBuf *ibuf, const ColorManagedViewSettings *
/* convert to number of lines with logarithmic scale */
scopes->sample_lines = (scopes->accuracy * 0.01f) * (scopes->accuracy * 0.01f) * ibuf->y;
CLAMP_MIN(scopes->sample_lines, 1);
if (scopes->sample_full)
scopes->sample_lines = ibuf->y;