mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 58084
This commit is contained in:
@ -1617,7 +1617,7 @@ BYTE* CPdfReader::GetAPAnnots(int nRasterW, int nRasterH, int nBackgroundColor,
|
||||
sType = oObj.getName();
|
||||
oObj.free(); oAnnot.free();
|
||||
|
||||
if (sType == "Widget")
|
||||
if (sType == "Widget" || sType == "Highlight")
|
||||
{
|
||||
oAnnotRef.free();
|
||||
continue;
|
||||
|
||||
@ -1846,7 +1846,10 @@ CAnnotTextMarkup::CAnnotTextMarkup(PDFDoc* pdfDoc, Object* oAnnotRef, int nPageI
|
||||
oObj.free();
|
||||
|
||||
if (sType == "Highlight")
|
||||
{
|
||||
m_nSubtype = 8;
|
||||
m_unAFlags &= ~(1 << 6);
|
||||
}
|
||||
else if (sType == "Underline")
|
||||
m_nSubtype = 9;
|
||||
else if (sType == "Squiggly")
|
||||
|
||||
@ -172,6 +172,7 @@ protected:
|
||||
CAnnot(PDFDoc* pdfDoc, Object* oAnnotRef, int nPageIndex);
|
||||
std::string DictLookupString(Object* pObj, const char* sName, int nByte);
|
||||
|
||||
unsigned int m_unAFlags;
|
||||
unsigned int m_unFlags;
|
||||
double m_dHeight; // Высота холста, для Y трансформации
|
||||
double m_dX; // Смещение по X для трансформации
|
||||
@ -193,7 +194,6 @@ private:
|
||||
};
|
||||
CBorderType* getBorder(Object* oBorder, bool bBSorBorder);
|
||||
|
||||
unsigned int m_unAFlags;
|
||||
unsigned int m_unAnnotFlag; // Флаг аннотации - F
|
||||
unsigned int m_unRefNum; // Номер ссылки на объект
|
||||
unsigned int m_unPage; // Страница
|
||||
|
||||
Reference in New Issue
Block a user