Skip to content

Commit

Permalink
Fix bug #70434
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita authored and KirillovIlya committed Oct 2, 2024
1 parent f373d9b commit 72edaf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/Drawings/CommonController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion pdf/src/annotations/freeText.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 72edaf1

Please sign in to comment.