diff --git a/GUI/View/PropertyEditor/CustomEditors.cpp b/GUI/View/PropertyEditor/CustomEditors.cpp
index 66f10b0bcbe018ccfc1961b6b607a7e8ed398558..208be506db41c15aa8fa29d9b3451c45276ca616 100644
--- a/GUI/View/PropertyEditor/CustomEditors.cpp
+++ b/GUI/View/PropertyEditor/CustomEditors.cpp
@@ -20,6 +20,7 @@
 #include "GUI/View/PropertyEditor/CustomEventFilters.h"
 #include <QBoxLayout>
 #include <QComboBox>
+#include <cmath>
 
 namespace {
 //! Single step for QDoubleSpinBox.