Summary: | No access to doc-based dialogs using ScriptForge | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Alain Romedenne <alain.romedenne> |
Component: | BASIC | Assignee: | Jean-Pierre Ledure <jp> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alain.romedenne, jp |
Priority: | medium | ||
Version: | 7.3.0.3 release | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | target:7.5.0 target:7.4.3 | ||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 159638 | ||
Attachments: | evidence file with example |
Description
Alain Romedenne
2022-10-13 15:10:46 UTC
Created attachment 183017 [details]
evidence file with example
I confirm the abnormal behaviour. An easy workaround is by replacing the statement Set oDlg = CreateScriptService("dialog", "", "PoC", "Options") by Set oDlg = CreateScriptService("dialog", ThisComponent, "PoC", "Options") This solves the issue in the first place. I'll post a commit to fix the incident definitively. Jean-Pierre Ledure committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/06933af12a34aa07068c38af0ce196a7037f5119 ScriptForge - (Dialogs) tdf#151510 fix CreateScriptService("dialog") It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. Jean-Pierre Ledure committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/1bce5209a93b4313e7b39932eabe5f84c39ee0ea ScriptForge - (Dialogs) tdf#151510 fix CreateScriptService("dialog") It will be available in 7.4.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback. |