From 6d4200e89c73aa767f42e44adb06026af7cef2f5 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Wed, 20 Sep 2017 06:45:07 +0200 Subject: [PATCH] Ensure that the zoom settings is a supported value --- src/blupi.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blupi.cxx b/src/blupi.cxx index 109cb44..54b6c9d 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -157,7 +157,7 @@ ReadConfig () if (!(g_settingsOverload & SETTING_ZOOM) && j.find ("zoom") != j.end ()) { g_windowScale = j["zoom"].get (); - if (g_windowScale != 0) + if (g_windowScale != 1 && g_windowScale != 2) g_windowScale = 1; }