[longomatch] Add braces around && operation to be more explicit



commit 0d10847b389bf298240196f6a33751eb8cee3552
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Apr 27 19:27:43 2015 +0200

    Add braces around && operation to be more explicit

 LongoMatch.GUI/Gui/Dialog/DrawingTool.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
index 81f42da..954224c 100644
--- a/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
+++ b/LongoMatch.GUI/Gui/Dialog/DrawingTool.cs
@@ -546,8 +546,8 @@ namespace LongoMatch.Gui.Dialog
                void HandleRegionOfInterestChanged (object sender, EventArgs e)
                {
                        if (blackboard.RegionOfInterest.Empty ||
-                           blackboard.RegionOfInterest.Width == blackboard.Background.Width &&
-                           blackboard.RegionOfInterest.Height == blackboard.Background.Height) {
+                           (blackboard.RegionOfInterest.Width == blackboard.Background.Width &&
+                           blackboard.RegionOfInterest.Height == blackboard.Background.Height)) {
                                hscrollbar.Visible = false;
                                wscrollbar.Visible = false;
                        } else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]