[education/rkward] rkward/rbackend/rkwarddevice: Fix compilation with R < 4.2

Thomas Friedrichsmeier null at kde.org
Sun Apr 3 15:26:23 BST 2022


Git commit ac62f42ab1940ab258c92c322d6b22c2bc3db75d by Thomas Friedrichsmeier.
Committed on 03/04/2022 at 13:20.
Pushed by tfry into branch 'master'.

Fix compilation with R < 4.2

M  +1    -1    rkward/rbackend/rkwarddevice/rkgraphicsdevice_stubs.cpp

https://invent.kde.org/education/rkward/commit/ac62f42ab1940ab258c92c322d6b22c2bc3db75d

diff --git a/rkward/rbackend/rkwarddevice/rkgraphicsdevice_stubs.cpp b/rkward/rbackend/rkwarddevice/rkgraphicsdevice_stubs.cpp
index 86d638a8..c2f73da6 100644
--- a/rkward/rbackend/rkwarddevice/rkgraphicsdevice_stubs.cpp
+++ b/rkward/rbackend/rkwarddevice/rkgraphicsdevice_stubs.cpp
@@ -780,7 +780,7 @@ SEXP RKD_SetClipPath (SEXP path, SEXP ref, pDevDesc dev) {
 #if R_VERSION >= R_Version(4, 2, 0)
 		RKD_OUT_STREAM << (qint8) mapFillRule(R_GE_clipPathFillRule(path));
 #else
-		RKD_OUT_STREAM << (qint8) EvenOddRule;
+		RKD_OUT_STREAM << (qint8) 0;  // NOTE: 0 == Qt::OddEvenFill
 #endif
 	}
 	{



More information about the rkward-tracker mailing list