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
This commit is contained in:
Jean-Pierre Ledure 2022-10-13 18:24:44 +02:00
parent a42b495393
commit 06933af12a

View file

@ -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