mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
8329e97502
commit
1b22da0039
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user