mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 03:55:47 +08:00
fix PdfReader and PdfWriter, fix BUILDING_WASM_MODULE
This commit is contained in:
@ -837,9 +837,7 @@ namespace XPS
|
||||
CWString wsFill;
|
||||
|
||||
CWString wsClip, wsTransform, wsPathData, wsPathTransform;
|
||||
#ifdef BUILDING_WASM_MODULE
|
||||
std::vector<CDocument::CDocumentStructure>::iterator find = m_pDocument->m_vStructure.end();
|
||||
#endif
|
||||
if (oReader.MoveToFirstAttribute())
|
||||
{
|
||||
std::wstring wsAttrName = oReader.GetName();
|
||||
@ -929,7 +927,6 @@ namespace XPS
|
||||
{
|
||||
wsPathData.create(oReader.GetText(), true);
|
||||
}
|
||||
#ifdef BUILDING_WASM_MODULE
|
||||
else if (L"Name" == wsAttrName)
|
||||
{
|
||||
std::wstring wsNameTarget = oReader.GetText();
|
||||
@ -1016,7 +1013,6 @@ namespace XPS
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!oReader.MoveToNextAttribute())
|
||||
break;
|
||||
@ -1025,7 +1021,6 @@ namespace XPS
|
||||
}
|
||||
}
|
||||
oReader.MoveToElement();
|
||||
#ifdef BUILDING_WASM_MODULE
|
||||
if (find != m_pDocument->m_vStructure.end())
|
||||
{
|
||||
std::wstring wsPath = wsPathData.c_stdstr();
|
||||
@ -1038,7 +1033,6 @@ namespace XPS
|
||||
find->dY = GetDouble(wsPath.substr(nFindY, nFindEndY - nFindY));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
CBrush* pBrush = NULL;
|
||||
bool bDeleteBrush = false;
|
||||
|
||||
Reference in New Issue
Block a user