--- src/Mod/Image/Gui/OpenGLImageBox.cpp.orig	2020-06-22 16:27:04 UTC
+++ src/Mod/Image/Gui/OpenGLImageBox.cpp
@@ -26,6 +26,7 @@
 # include <QSurfaceFormat>
 # include <QMessageBox>
 # include <QPainter>
+# include <QPainterPath>
 #endif
 
 #if defined(__MINGW32__)
