1
0
Fork 0

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:
Jonas Ådahl 2017-06-08 10:06:24 +08:00
parent 0adc56779f
commit aa5d8ac68c

View file

@ -833,7 +833,7 @@ handle_text (GMarkupParseContext *context,
&parser->current_logical_monitor_config->scale, error))
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,
"Logical monitor scale '%g' invalid",