[bugfix] handle zero X or Y

Add tests for when X or Y is zero.

Merge request reports

Loading