Blame SOURCES/0001-Monitor-config-Fix-a-copy-paste-error.patch

2c033f
From 1b22da00390f69fcdfd57135e10f141750e47f00 Mon Sep 17 00:00:00 2001
2c033f
From: Matthias Clasen <mclasen@redhat.com>
2c033f
Date: Mon, 20 Jul 2015 17:33:28 -0400
2c033f
Subject: [PATCH 1/2] Monitor-config: Fix a copy-paste error
2c033f
2c033f
The code was checking width twice, instead of width and height,
2c033f
as was clearly the intention. Coverity pointed this out.
2c033f
2c033f
https://bugzilla.gnome.org/show_bug.cgi?id=752551
2c033f
---
2c033f
 src/backends/meta-monitor-config.c | 4 ++--
2c033f
 1 file changed, 2 insertions(+), 2 deletions(-)
2c033f
2c033f
diff --git a/src/backends/meta-monitor-config.c b/src/backends/meta-monitor-config.c
2c033f
index eae142a..ba0ae57 100644
2c033f
--- a/src/backends/meta-monitor-config.c
2c033f
+++ b/src/backends/meta-monitor-config.c
2c033f
@@ -489,8 +489,8 @@ handle_end_element (GMarkupParseContext  *context,
2c033f
               }
2c033f
             else
2c033f
               {
2c033f
-                if (parser->output.rect.width == 0 &&
2c033f
-                    parser->output.rect.width == 0)
2c033f
+                if (parser->output.rect.width == 0 ||
2c033f
+                    parser->output.rect.height == 0)
2c033f
                   parser->output.enabled = FALSE;
2c033f
                 else
2c033f
                   parser->output.enabled = TRUE;
2c033f
-- 
2c033f
2.4.5
2c033f