]> granicus.if.org Git - handbrake/commitdiff
WinGui: SplitButton was broken. #524
authorsr55 <sr55.hb@outlook.com>
Sun, 15 Jan 2017 14:07:26 +0000 (14:07 +0000)
committersr55 <sr55.hb@outlook.com>
Sun, 15 Jan 2017 14:07:40 +0000 (14:07 +0000)
win/CS/HandBrakeWPF/Controls/SplitButton/SplitMenuButton.cs

index ce7a57bb94c0507d2c93fd252641e9a66cbbf57a..5003068d1494a2b22503630bfb09db7fbc375e6f 100644 (file)
@@ -194,7 +194,7 @@ namespace HandBrakeWPF.Controls.SplitButton
         /// </summary>\r
         protected void OpenButtonMenu()\r
         {\r
-            if ((this.ItemSource.Count < 0) && (this.contextMenu != null))\r
+            if ((this.ItemSource.Count > 0) && (this.contextMenu != null))\r
             {\r
                 this.contextMenu.HorizontalOffset = 0;\r
                 this.contextMenu.VerticalOffset = 0;\r