Merge pull request #602 from soh1988/patch-minSize

Changing the Logical Or to Bitwise Or to change from Either to Either Or...
This commit is contained in:
Cheng Zhao 2014-08-23 19:17:54 +08:00
commit 2e7ef7ea44

View file

@ -145,7 +145,7 @@ void NativeWindow::InitFromOptions(const mate::Dictionary& options) {
Center();
}
int min_height = 0, min_width = 0;
if (options.Get(switches::kMinHeight, &min_height) ||
if (options.Get(switches::kMinHeight, &min_height) |
options.Get(switches::kMinWidth, &min_width)) {
SetMinimumSize(gfx::Size(min_width, min_height));
}