From 13388b4d8b1deed6bc8a17dafc19bca55cf90d0b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 8 May 2024 16:15:51 +0300 Subject: [PATCH] [PE] Bug 67159: handle hyperlink settings for buttons --- .../main/app/controller/DocumentHolder.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/presentationeditor/main/app/controller/DocumentHolder.js b/apps/presentationeditor/main/app/controller/DocumentHolder.js index 23ead890d6..edb6d7a5ec 100644 --- a/apps/presentationeditor/main/app/controller/DocumentHolder.js +++ b/apps/presentationeditor/main/app/controller/DocumentHolder.js @@ -1144,12 +1144,16 @@ define([ api: me.api, appOptions: me.mode, handler: handlerDlg, - type: isButton ? c_oHyperlinkType.InternalLink : undefined, + type: isButton===true ? c_oHyperlinkType.InternalLink : undefined, slides: _arr }); - props = new Asc.CHyperlinkProperty(); - props.put_Text(text); + if (isButton && (isButton instanceof Asc.CHyperlinkProperty)) + props = isButton; + else { + props = new Asc.CHyperlinkProperty() + props.put_Text(text); + } win.show(); win.setSettings(props);