Fixed improper construction of LinearGradientPaint

A LinearGradientPaint was created that in some cases would be constructed with an equal start and end point. This is not allowed and has been fixed.