diff --git a/MantidPlot/src/Mantid/InstrumentWidget/RectF.cpp b/MantidPlot/src/Mantid/InstrumentWidget/RectF.cpp
index 8204c70743db244acfd669047da57e57a4bb95b2..857f24699512680169df29eb814b1b5d61cb7480 100644
--- a/MantidPlot/src/Mantid/InstrumentWidget/RectF.cpp
+++ b/MantidPlot/src/Mantid/InstrumentWidget/RectF.cpp
@@ -1,3 +1,5 @@
+#include <iostream>
+
 #include "RectF.h"