Fix some issues with the core file writing code.

Add test images to the unit tests.
This commit is contained in:
Michael R Sweet
2021-05-28 10:41:21 -04:00
parent 9cf024c1ce
commit fb853dadda
7 changed files with 103 additions and 15 deletions

View File

@ -801,7 +801,7 @@ _pdfioDictWrite(pdfio_dict_t *dict, // I - Dictionary
if (length && !strcmp(pair->key, "Length") && pair->value.type == PDFIO_VALTYPE_NUMBER && pair->value.value.number <= 0.0f)
{
// Writing an object dictionary with an undefined length
*length = _pdfioFileTell(pdf);
*length = _pdfioFileTell(pdf) + 1;
if (!_pdfioFilePuts(pdf, " 9999999999"))
return (false);
}