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
5cbae3985b
commit
e419662fac
1 changed files with 6 additions and 0 deletions
|
@ -152,6 +152,12 @@ bool MimeHandlerText::next_document()
|
||||||
if (m_offs - srclen != 0)
|
if (m_offs - srclen != 0)
|
||||||
m_metaData[cstr_dj_keyipath] = buf;
|
m_metaData[cstr_dj_keyipath] = buf;
|
||||||
readnext();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue