[mutter] Monitor-config: Fix a copy-paste error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Monitor-config: Fix a copy-paste error
- Date: Mon, 20 Jul 2015 21:41:33 +0000 (UTC)
commit 1b22da00390f69fcdfd57135e10f141750e47f00
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 20 17:33:28 2015 -0400
Monitor-config: Fix a copy-paste 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
src/backends/meta-monitor-config.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/meta-monitor-config.c b/src/backends/meta-monitor-config.c
index eae142a..ba0ae57 100644
--- a/src/backends/meta-monitor-config.c
+++ b/src/backends/meta-monitor-config.c
@@ -489,8 +489,8 @@ handle_end_element (GMarkupParseContext *context,
}
else
{
- if (parser->output.rect.width == 0 &&
- parser->output.rect.width == 0)
+ if (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]