wizards/source/sfdialogs/SF_Dialog.xba |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0a2d22ceac6236fc999db368cc6201c6153dd71b
Author:     Jean-Pierre Ledure <j...@ledure.be>
AuthorDate: Mon Jul 18 17:42:31 2022 +0200
Commit:     Jean-Pierre Ledure <j...@ledure.be>
CommitDate: Tue Jul 19 11:24:03 2022 +0200

    ScriptForge - (SF_Dialog) trap errors caused by dialog events
    
    A dialog is started with the Execute() method.
    
    During its life span user scripts may be executed
    as a consequence of mouse clicks etc.
    
    When those scripts contain errors and they are not
    trapped;
    - in the actual situation, the error is detected by
      ScriptForge and considered as an internal error
    - this new commit considers the error as a user error.
    
    The help pages should be completed to promote the
    use of errors trapping inside scripts triggered
    by events.
    
    Change-Id: Iba3eefc75d305c17e6e1d9d416496882e0f816bb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137203
    Tested-by: Jean-Pierre Ledure <j...@ledure.be>
    Reviewed-by: Jean-Pierre Ledure <j...@ledure.be>
    Tested-by: Jenkins

diff --git a/wizards/source/sfdialogs/SF_Dialog.xba 
b/wizards/source/sfdialogs/SF_Dialog.xba
index da2afcb4a80e..4a6d1ae7a380 100644
--- a/wizards/source/sfdialogs/SF_Dialog.xba
+++ b/wizards/source/sfdialogs/SF_Dialog.xba
@@ -561,6 +561,8 @@ Finally:
        ScriptForge.SF_Utils._ExitFunction(cstThisSub)
        Exit Function
 Catch:
+       &apos;  When an error is caused by an event error, the location is 
unknown
+       SF_Exception.Raise(, &quot;?&quot;)
        GoTo Finally
 End Function   &apos;  SFDialogs.SF_Dialog.Execute
 

Reply via email to