We should be able to skip contenthash check even when we're not injecting content

This commit is contained in:
Ai Lin Chia
2018-04-13 13:27:12 +02:00
parent 8b3036b4c9
commit 8324b5f337

@ -2728,7 +2728,7 @@ int32_t *XmlDoc::getIndexCode ( ) {
}
// disable content hash check if language differ (we could have overridden language when injecting doc)
bool checkContentHash = true;
bool checkContentHash = !m_skipContentHashCheck;
if (m_wasContentInjected) {
if (m_skipContentHashCheck || (m_langIdValid && m_langId != od->m_langId)) {
checkContentHash = false;