diff --git a/src/html/m_image.cpp b/src/html/m_image.cpp
index dc54a608e8..86c0d6924e 100644
--- a/src/html/m_image.cpp
+++ b/src/html/m_image.cpp
@@ -17,6 +17,7 @@
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#include "wx/dc.h"
+ #include "wx/dcprint.h"
#include "wx/scrolwin.h"
#include "wx/timer.h"
#include "wx/dcmemory.h"