mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
DocFormat(before 1997) - fix pictures
This commit is contained in:
@ -71,6 +71,11 @@ namespace DocFileFormat
|
||||
unsigned short code = oldVersion ? FormatUtils::BytesToUChar ( bytes, sprmStart, size ) :
|
||||
FormatUtils::BytesToUInt16 ( bytes, sprmStart, size ) ;
|
||||
|
||||
if (oldVersion && code == 0)
|
||||
{
|
||||
sprmStart++;
|
||||
continue;
|
||||
}
|
||||
OperationCode opCode = (OperationCode)code;
|
||||
short opSize = -1;
|
||||
|
||||
@ -137,7 +142,6 @@ namespace DocFileFormat
|
||||
}
|
||||
}
|
||||
|
||||
//copy sprm to array
|
||||
//length is 2byte for the opCode, lenByte for the length, opSize for the length of the operand
|
||||
int sprmBytesSize = opCodeSize + lenByte + opSize;
|
||||
unsigned char* sprmBytes = NULL;
|
||||
@ -148,7 +152,6 @@ namespace DocFileFormat
|
||||
{
|
||||
memcpy( sprmBytes, ( bytes + sprmStart ), sprmBytesSize );
|
||||
|
||||
//parse
|
||||
SinglePropertyModifier sprm( sprmBytes, sprmBytesSize, oldVersion );
|
||||
grpprl->push_back( sprm );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user