For bug 59181

This commit is contained in:
Daria Ermakova
2025-12-29 14:57:48 +03:00
parent b000343b86
commit fd2710e46e
2 changed files with 24 additions and 5 deletions

View File

@ -66,7 +66,10 @@ namespace DocFileFormat
brcType = bytes[5];
short val = FormatUtils::BytesToInt16( bytes, 6, size );
dptSpace = val & 0x001F;
if (val == -1)
dptSpace = 0;
else
dptSpace = val & 0x001F;
//not sure if this is correct, the values from the spec are definitly wrong:
fShadow = FormatUtils::BitmaskToBool( val, 0x20 );