commit c24233e3f16e73fbab534deaad51e7a4ff11d8e5
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Fri Nov 25 00:06:06 2022 +0100
Improve replacement for qDegreesToRadians
This is for Qt 5.0.X compatibility.
---
src/frontends/qt/GuiFontMetrics.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/frontends/qt/GuiFontMetrics.cpp
b/src/frontends/qt/GuiFontMetrics.cpp
index cc3a329..93a428d 100644
--- a/src/frontends/qt/GuiFontMetrics.cpp
+++ b/src/frontends/qt/GuiFontMetrics.cpp
@@ -33,7 +33,7 @@
#if QT_VERSION >= 0x050100
#include <QtMath>
#else
-#define qDegreesToRadians(degree) (degree * (M_PI / 180))
+#define qDegreesToRadians(degree) (degree) * (M_PI / 180)
#endif
using namespace std;
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs