summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2022-10-13 18:24:44 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2022-10-17 11:11:55 +0200
commit1bce5209a93b4313e7b39932eabe5f84c39ee0ea (patch)
treecbe845f1b1dcab9111b0e7c0fa1e5aa01715b147 /wizards
parentb37764993f7e524dbe2cf79ca921d0b01e6fba97 (diff)
ScriptForge - (Dialogs) tdf#151510 fix CreateScriptService("dialog")
Bug description: Programmatic access to doc-based dialog is not possible using ScriptForge.Dialog service The relevant component was identified incorrectly in routine SFDialogs.SF_Register_NewDialog() Change-Id: I13f6302330ca097b8aef8fd3cdbd0b3d05a1b58c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141337 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Reviewed-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141359
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/sfdialogs/SF_Register.xba3
1 files changed, 2 insertions, 1 deletions
diff --git a/wizards/source/sfdialogs/SF_Register.xba b/wizards/source/sfdialogs/SF_Register.xba
index 11ee1543b412..e81dbb069fa8 100644
--- a/wizards/source/sfdialogs/SF_Register.xba
+++ b/wizards/source/sfdialogs/SF_Register.xba
@@ -291,7 +291,8 @@ Try:
Loop
Else
bFound = True
- vWindow = oUi._IdentifyWindow(StarDesktop.CurrentComponent)
+ Set oComp = StarDesktop.CurrentComponent
+ vWindow = oUi._IdentifyWindow(oComp)
End If
Case V_OBJECT &apos; com.sun.star.lang.XComponent
bFound = True