]> khamidou — GitHub mirrors - electron.git/commitdiff
Changing the Logical Or to Bitwise Or to change from Either to Either Or Both values
authorChris Soh <soh1988@gmail.com>
Thu, 21 Aug 2014 06:43:35 +0000 (14:43 +0800)
committerChris Soh <soh1988@gmail.com>
Sat, 23 Aug 2014 05:30:43 +0000 (13:30 +0800)
atom/browser/native_window.cc

index 94d308b355f18d4407769e5f3acbeede8af3bcb6..d3fed614547bb8c642fe6286836b3a21d9220f23 100644 (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));
   }