diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-07-20 17:33:28 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-07-20 17:33:28 -0400 |
commit | 1b22da00390f69fcdfd57135e10f141750e47f00 (patch) | |
tree | fb723691a8ba6b32cdc9ed846e9ed68bc351e1ee /src | |
parent | 8329e97502122d9023d3dcb9e4fea50ae5470015 (diff) | |
download | mutter-1b22da00390f69fcdfd57135e10f141750e47f00.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | 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 eae142a7e..ba0ae572f 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; |