Re: [Linuxwacom-devel] [PATCH] Avoid 'division by zero' in xf86ScaleAxis()

2014-02-13 Thread Jason Gerecke
Reviewed-by: Jason Gerecke Jason --- Now instead of four in the eights place / you’ve got three, ‘Cause you added one / (That is to say, eight) to the two, / But you can’t take seven from three,/ So you look at the sixty-fours On Thu, Feb 13, 2014 at 2:14 PM, Peter Hutterer wrote

Re: [Linuxwacom-devel] [PATCH] Avoid 'division by zero' in xf86ScaleAxis()

2014-02-13 Thread Peter Hutterer
On Wed, Feb 12, 2014 at 08:03:17PM +0100, Egbert Eich wrote: > From: Egbert Eich > > If minPressure == wcmMaxZ then the range left to scale is 0. Catch > this condition and act appropriately. > > Signed-off-by: Egbert Eich > --- > src/wcmCommon.c | 13 + > 1 file changed, 9 inserti

[Linuxwacom-devel] [PATCH] Avoid 'division by zero' in xf86ScaleAxis()

2014-02-12 Thread Egbert Eich
From: Egbert Eich If minPressure == wcmMaxZ then the range left to scale is 0. Catch this condition and act appropriately. Signed-off-by: Egbert Eich --- src/wcmCommon.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index ec