This commit is contained in:
ElenaSubbotina
2017-11-21 18:10:05 +03:00
parent bae854027b
commit dce58b628f
4 changed files with 53 additions and 48 deletions

View File

@ -349,7 +349,7 @@ namespace DocFileFormat
void TableCellPropertiesMapping::apppendCellShading (unsigned char* sprmArg, int size, int cellIndex)
{
if (sprmArg)
if (sprmArg && cellIndex >= 0)
{
//shading descriptor can have 10 bytes (Word 2000) or 2 bytes (Word 97)
int shdLength = 2;