[gnome-flashback] display-config: fix a copy-past error
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] display-config: fix a copy-past error
- Date: Sun, 23 Aug 2015 08:12:26 +0000 (UTC)
commit 67c2b28b935604e78a3bca4d1a0b778c99e55153
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 20 17:33:28 2015 -0400
display-config: fix a copy-past error
The code was checking width twice, instead of width and height,
as was clearly the intention. Coverity pointed this out.
https://bugzilla.gnome.org/show_bug.cgi?id=752551
.../libdisplay-config/flashback-monitor-config.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-flashback/libdisplay-config/flashback-monitor-config.c
b/gnome-flashback/libdisplay-config/flashback-monitor-config.c
index e1cc171..dd8f211 100644
--- a/gnome-flashback/libdisplay-config/flashback-monitor-config.c
+++ b/gnome-flashback/libdisplay-config/flashback-monitor-config.c
@@ -952,7 +952,7 @@ handle_end_element (GMarkupParseContext *context,
else
{
if (parser->output.rect.width == 0 &&
- parser->output.rect.width == 0)
+ parser->output.rect.height == 0)
parser->output.enabled = FALSE;
else
parser->output.enabled = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]