diff --git a/GUI/View/PlotSpecular/SpecularPlot.h b/GUI/View/PlotSpecular/SpecularPlot.h
index 1c3be99b6b0c55608af6b9f672bb41bff841ea5f..d6ce1e46bf77210a256030efa7e28ec63f0cfe73 100644
--- a/GUI/View/PlotSpecular/SpecularPlot.h
+++ b/GUI/View/PlotSpecular/SpecularPlot.h
@@ -16,6 +16,7 @@
 #define BORNAGAIN_GUI_VIEW_PLOTSPECULAR_SPECULARPLOT_H
 
 #include "GUI/View/PlotUtil/ScientificPlot.h"
+#include <QMap>
 #include <memory>
 
 class BasicAxisItem;