From: Chris Soh Date: Thu, 21 Aug 2014 06:43:35 +0000 (+0800) Subject: Changing the Logical Or to Bitwise Or to change from Either to Either Or Both values X-Git-Tag: v0.16.0~19^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=a0867fa7c575db316ddc0d7fcce1504b151a2140;p=electron.git Changing the Logical Or to Bitwise Or to change from Either to Either Or Both values --- diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index 94d308b3..d3fed614 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -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)); }