Fix broken gradient truncation

Fixes: 131190752
Test: manual
Change-Id: I2a012d189b66f9e8b7cdbfc68f5c6fda2be42e28
3 files changed