Fix DesktopSize::is_empty() for the case when only width or only height is 0.
BUG=crbug.com/358909 R=wez@chromium.org Review URL: https://webrtc-codereview.appspot.com/11479004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5867 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
a78a41f985
commit
74f6074ec1
@ -58,7 +58,7 @@ class DesktopSize {
|
||||
int32_t width() const { return width_; }
|
||||
int32_t height() const { return height_; }
|
||||
|
||||
bool is_empty() const { return width_ <= 0 && height_ <= 0; }
|
||||
bool is_empty() const { return width_ <= 0 || height_ <= 0; }
|
||||
|
||||
bool equals(const DesktopSize& other) const {
|
||||
return width_ == other.width_ && height_ == other.height_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user