From 72edaf160bd5f55639259db798219c99c8df963e Mon Sep 17 00:00:00 2001 From: Nikita Khromov Date: Wed, 2 Oct 2024 19:30:42 +0700 Subject: [PATCH] Fix bug #70434 --- common/Drawings/CommonController.js | 2 +- pdf/src/annotations/freeText.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/Drawings/CommonController.js b/common/Drawings/CommonController.js index 51e4a816fc..42afbe5768 100644 --- a/common/Drawings/CommonController.js +++ b/common/Drawings/CommonController.js @@ -1525,7 +1525,7 @@ if (AscFormat.isLeftButtonDoubleClick(e) && !e.ShiftKey && !e.CtrlKey && ((this.selection.groupSelection && this.selection.groupSelection.selectedObjects.length === 1) || this.selectedObjects.length === 1)) { - var drawing = this.selectedObjects[0].parent; + var drawing = this.selectedObjects[0] && this.selectedObjects[0].parent; if (object.getObjectType() === AscDFH.historyitem_type_ChartSpace && this.handleChartDoubleClick) { this.handleChartDoubleClick(drawing, object, e, x, y, pageIndex); diff --git a/pdf/src/annotations/freeText.js b/pdf/src/annotations/freeText.js index 5411b67c75..0b4dcc9850 100644 --- a/pdf/src/annotations/freeText.js +++ b/pdf/src/annotations/freeText.js @@ -925,7 +925,7 @@ this.selectedObjects.length = 0; this.spTree.forEach(function(sp) { - if (!(sp instanceof AscFormat.CConnectionShape)) { + if (!(sp instanceof AscPDF.CPdfConnectionShape)) { sp.selectStartPage = _t.selectStartPage; _t.selectedObjects.push(sp); }