ComputedPositiveInteger is an integer greater than or equal to 1.

This commit is contained in:
Hiroyuki Ikezoe 2017-08-15 13:03:53 +09:00
parent 19d498f01e
commit fa3b62746d

View file

@ -172,7 +172,7 @@ impl ToAnimatedValue for ComputedPositiveInteger {
#[inline]
fn from_animated_value(animated: Self::AnimatedValue) -> Self {
max(animated.0, 0).into()
max(animated.0, 1).into()
}
}