Fixed bug [3529885fff]
Added test case for bug [3529885fff]
[3529885] [scale] handle negative resolution properly.