commit 4c1a75a45cf0ee88efb3b19e24b89d57bb426f09
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Fri Nov 25 00:18:07 2022 +0100

    Fixup 52ea3679: make macro safer.
    
    Taking advice from José.
---
 src/frontends/qt4/GuiFontMetrics.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/frontends/qt4/GuiFontMetrics.cpp 
b/src/frontends/qt4/GuiFontMetrics.cpp
index b76538e..914334b 100644
--- a/src/frontends/qt4/GuiFontMetrics.cpp
+++ b/src/frontends/qt4/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
lyx-cvs@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to