--- a/src/internfile/mh_html.cpp
+++ b/src/internfile/mh_html.cpp
@@ -52,11 +52,12 @@
m_html = htext;
m_havedoc = true;
- // We want to compute the md5 now because we may modify m_html later
- string md5, xmd5;
- MD5String(htext, md5);
- m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
-
+ if (!m_forPreview) {
+ // We want to compute the md5 now because we may modify m_html later
+ string md5, xmd5;
+ MD5String(htext, md5);
+ m_metaData[cstr_dj_keymd5] = MD5HexPrint(md5, xmd5);
+ }
return true;
}