mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Only text fo apValue
This commit is contained in:
@ -3241,7 +3241,6 @@ CAnnotAP::~CAnnotAP()
|
||||
|
||||
for (int i = 0; i < m_arrAP.size(); ++i)
|
||||
{
|
||||
RELEASEOBJECT(m_arrAP[i]->pText);
|
||||
RELEASEOBJECT(m_arrAP[i]);
|
||||
}
|
||||
}
|
||||
@ -3546,7 +3545,7 @@ void CAnnotAP::WriteAppearance(unsigned int nColor, CAnnotAPView* pView)
|
||||
}
|
||||
|
||||
pView->pAP = pSubMatrix;
|
||||
pView->pText = ((GlobalParamsAdaptor*)globalParams)->GetTextFormField();
|
||||
pView->sText = ((GlobalParamsAdaptor*)globalParams)->GetTextFormField();
|
||||
}
|
||||
BYTE CAnnotAP::GetBlendMode()
|
||||
{
|
||||
@ -3580,18 +3579,13 @@ void CAnnotAP::ToWASM(NSWasm::CData& oRes)
|
||||
|
||||
oRes.WriteBYTE(m_arrAP[i]->nBlendMode);
|
||||
|
||||
BYTE* pTextFormField = m_arrAP[i]->pText;
|
||||
if (pTextFormField)
|
||||
{
|
||||
BYTE* x = pTextFormField;
|
||||
unsigned int nLength = x[0] | x[1] << 8 | x[2] << 16 | x[3] << 24;
|
||||
nLength -= 4;
|
||||
oRes.Write(pTextFormField + 4, nLength);
|
||||
}
|
||||
if (m_arrAP[i]->sText.empty())
|
||||
oRes.WriteBYTE(0);
|
||||
else
|
||||
oRes.AddInt(0);
|
||||
RELEASEARRAYOBJECTS(pTextFormField);
|
||||
m_arrAP[i]->pText = NULL;
|
||||
{
|
||||
oRes.WriteBYTE(1);
|
||||
oRes.WriteString(m_arrAP[i]->sText);
|
||||
}
|
||||
}
|
||||
}
|
||||
void CAnnots::ToWASM(NSWasm::CData& oRes)
|
||||
|
||||
Reference in New Issue
Block a user