Avoid pad creation with W<=0 or H<=0 (#6396)
Avoid pad creation with W<=0 or H<=0 (#6396)

* Avoid pad creation with W<=0 or H<=0

* More protections against wrong pad position.
root-mirror/root,root-mirror/root,olifre/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,olifre/root,olifre/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,olifre/root,root-mirror/root