Merge pull request 'Fix SVG' (#509) from fix/svg into release/v9.2.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/509
This commit is contained in:
Oleg Korshul
2025-11-01 18:50:12 +00:00
2 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,7 @@ namespace SVG
if (NULL == pSvgFile)
return pObject;
if (DataObject != pObject->GetType() ||
if (DataObject != pObject->GetType() &&
(!pSvgFile->MarkObject(pObject) && AppliedObject == pObject->GetType()))
{
delete pObject;

View File

@ -9,6 +9,8 @@
#include "../../../../Common/3dParty/html/css/src/StaticFunctions.h"
#include <cctype>
#ifndef MININT8
#define MAXUINT8 ((unsigned char)~((unsigned char)0))
#define MAXINT8 ((char)(MAXUINT8 >> 1))