[mutter] monitor-config-store: Don't discard scale < 1.0 configurations
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] monitor-config-store: Don't discard scale < 1.0 configurations
- Date: Fri, 14 Jul 2017 13:02:07 +0000 (UTC)
commit aa5d8ac68c18adc964be3a43ca513952a259abf9
Author: Jonas Ådahl <jadahl gmail com>
Date: Thu Jun 8 10:06:24 2017 +0800
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/meta-monitor-config-store.c b/src/backends/meta-monitor-config-store.c
index d86c7a0..aa0310b 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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]