diff --git a/common/Drawings/Metafile.js b/common/Drawings/Metafile.js index 5d4466929a..28e035f179 100644 --- a/common/Drawings/Metafile.js +++ b/common/Drawings/Metafile.js @@ -3562,6 +3562,11 @@ this.Memory.WriteLong(nFlag); this.Memory.Seek(nEndPos); } + }, + + IsPdfRenderer : function() + { + return this.RENDERER_PDF_FLAG; } }; diff --git a/common/Native/native_graphics.js b/common/Native/native_graphics.js index 8c1ef4d32e..dcb85d35b3 100644 --- a/common/Native/native_graphics.js +++ b/common/Native/native_graphics.js @@ -754,5 +754,9 @@ CNativeGraphics.prototype = Destroy : function() { this.Native["Destroy"](); - } + }, + IsPdfRenderer : function() + { + return this.RENDERER_PDF_FLAG; + } }; diff --git a/word/Editor/StructuredDocumentTags/InlineLevel.js b/word/Editor/StructuredDocumentTags/InlineLevel.js index 339c9c90ad..9aa1da7bc0 100644 --- a/word/Editor/StructuredDocumentTags/InlineLevel.js +++ b/word/Editor/StructuredDocumentTags/InlineLevel.js @@ -607,7 +607,7 @@ CInlineLevelSdt.prototype.GetRangeBounds = function(_CurLine, _CurRange) }; CInlineLevelSdt.prototype.private_IsAddFormFieldToGraphics = function(oGraphics, oTransform) { - if (oGraphics.isPrintMode || !oGraphics.RENDERER_PDF_FLAG) + if (oGraphics.isPrintMode || !oGraphics.IsPdfRenderer || !oGraphics.IsPdfRenderer()) return false; var _oTransform = oTransform;