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
This commit is contained in:
Matthias Clasen 2015-07-20 17:33:28 -04:00
parent 8329e97502
commit 1b22da0039

View File

@ -489,8 +489,8 @@ handle_end_element (GMarkupParseContext *context,
} }
else else
{ {
if (parser->output.rect.width == 0 && if (parser->output.rect.width == 0 ||
parser->output.rect.width == 0) parser->output.rect.height == 0)
parser->output.enabled = FALSE; parser->output.enabled = FALSE;
else else
parser->output.enabled = TRUE; parser->output.enabled = TRUE;