diff --git a/GUI/Views/SampleDesigner/SelectionContainerForm.h b/GUI/Views/SampleDesigner/SelectionContainerForm.h
index cee5b733ea9af0418016b5f65e28ab35e2792cde..c1892e9fb2890d85c88f61feae56927d6774a691 100644
--- a/GUI/Views/SampleDesigner/SelectionContainerForm.h
+++ b/GUI/Views/SampleDesigner/SelectionContainerForm.h
@@ -16,6 +16,7 @@
 #define BORNAGAIN_GUI_VIEWS_SAMPLEDESIGNER_SELECTIONCONTAINERFORM_H
 
 #include "GUI/Views/SampleDesigner/LayerEditorUtils.h"
+#include "GUI/Views/SampleDesigner/SampleEditorController.h"
 #include "GUI/utils/LayoutUtils.h"
 #include <QComboBox>
 #include <QGridLayout>