Change things so that the first chunk of a multi-chunk (multi-mb) text files gets an ipath so that it does not stand for the whole file, but is treated like other chunks

This commit is contained in:
Jean-Francois Dockes 2015-01-21 16:21:33 +01:00
parent 5cbae3985b
commit e419662fac

View file

@ -152,6 +152,12 @@ bool MimeHandlerText::next_document()
if (m_offs - srclen != 0)
m_metaData[cstr_dj_keyipath] = buf;
readnext();
// This ensures that the first chunk (offs==srclen) of a
// multi-chunk file does have an ipath. Else it stands for the
// whole file, which used to be the case but does not seem
// right
if (m_havedoc)
m_metaData[cstr_dj_keyipath] = buf;
return true;
}
}