From ebd96fadd53fa553b5b09dc21e580df4cf70a2b5 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 25 Jan 2017 20:00:54 +0100 Subject: [PATCH] Ignore QT_SCALE_FACTOR for Qt < 5.6 This environment variable was introduced in Qt 5.6.0 --- src/LyX.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/LyX.cpp b/src/LyX.cpp index bf40298707..17094dab31 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -312,6 +312,7 @@ int LyX::exec(int & argc, char * argv[]) // we need to parse for "-dbg" and "-help" easyParse(argc, argv); +#if QT_VERSION >= 0x050600 // Check whether Qt will scale all GUI elements and accordingly // set the scale factor so that to avoid blurred images and text char const * const scale_factor = getenv("QT_SCALE_FACTOR"); @@ -320,6 +321,7 @@ int LyX::exec(int & argc, char * argv[]) if (qt_scale_factor < 1.0) qt_scale_factor = 1.0; } +#endif try { init_package(os::utf8_argv(0), cl_system_support, cl_user_support);