Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Rect::is_empty return true when either dimension is empty #110

Merged
merged 1 commit into from Oct 18, 2015

Commits on Oct 16, 2015

  1. Make Rect::is_empty return true when either dimension is empty

    Instead of only returning true when both dimensions of a Rect are
    empty, is_empty should return true when either is empty. This makes
    Rect much easier to use, because applications rarely want to
    distinguish between situations where a Rect is empty in only one
    direction or both.
    
    Fixes #109.
    mrobinson committed Oct 16, 2015
You can’t perform that action at this time.