From aa5d8ac68c18adc964be3a43ca513952a259abf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Thu, 8 Jun 2017 10:06:24 +0800 Subject: [PATCH] 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 --- src/backends/meta-monitor-config-store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/meta-monitor-config-store.c b/src/backends/meta-monitor-config-store.c index d86c7a02b..aa0310b0b 100644 --- a/src/backends/meta-monitor-config-store.c +++ b/src/backends/meta-monitor-config-store.c @@ -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",