diff --git a/src/backends/meta-monitor.c b/src/backends/meta-monitor.c index 51c793543..7e8b7c706 100644 --- a/src/backends/meta-monitor.c +++ b/src/backends/meta-monitor.c @@ -1458,6 +1458,9 @@ calculate_scale (MetaMonitor *monitor, scale = 1.0; + if (monitor_mode == NULL) + goto out; + meta_monitor_mode_get_resolution (monitor_mode, &resolution_width, &resolution_height);