Fix bugs in svg gradient

This commit is contained in:
Kirill Polyakov
2025-10-28 12:05:05 +03:00
parent 5046c1b326
commit e96ceab1e3
2 changed files with 4 additions and 12 deletions

View File

@ -9,7 +9,7 @@ namespace SVG
ObjectType CStopElement::GetType() const
{
return AppliedObject;
return DataObject;
}
SvgDigit CStopElement::GetOffset() const
@ -62,16 +62,7 @@ namespace SVG
return;
WHILE_READ_NEXT_NODE_WITH_ONE_NAME(oReader, "stop")
{
CStopElement *pStopElement = new CStopElement(oReader);
if (NULL == pStopElement)
continue;
pSvgFile->GetSvgCalculator()->SetData(pStopElement);
AddObject(pStopElement);
}
AddObject(CObject::Create<CStopElement>(oReader, pSvgFile));
END_WHILE
}

View File

@ -34,7 +34,8 @@ namespace SVG
enum ObjectType
{
RendererObject,
AppliedObject
AppliedObject,
DataObject
};
class CObject : public IGrObject