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:
parent
7c9e0af8a1
commit
628302c348
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user