mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
monitor-config-store: Don't discard scale < 1.0 configurations
It's not the task of the XML parser to decide this; let the code listing allowed scales sort out configurations with invalid scales. https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
parent
0adc56779f
commit
aa5d8ac68c
@ -833,7 +833,7 @@ handle_text (GMarkupParseContext *context,
|
|||||||
&parser->current_logical_monitor_config->scale, error))
|
&parser->current_logical_monitor_config->scale, error))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (parser->current_logical_monitor_config->scale < 1.0)
|
if (parser->current_logical_monitor_config->scale <= 0.0)
|
||||||
{
|
{
|
||||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
|
||||||
"Logical monitor scale '%g' invalid",
|
"Logical monitor scale '%g' invalid",
|
||||||
|
Loading…
Reference in New Issue
Block a user