Don't allow negative sizes.
Merge pull request #1657 from matham/negative_size

Don't allow negative sizes.