[Libreoffice-commits] core.git: wizards/source

Jean-Pierre Ledure (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 3 15:38:33 UTC 2021


 wizards/source/scriptforge/SF_Exception.xba |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit acfd369ebbd59d64290a846f49815592b6b95b30
Author:     Jean-Pierre Ledure <jp at ledure.be>
AuthorDate: Tue Feb 2 17:04:00 2021 +0100
Commit:     Jean-Pierre Ledure <jp at ledure.be>
CommitDate: Wed Feb 3 16:37:51 2021 +0100

    ScriptForge - (SF_Exception) fix DebugPrint accepts missing arguments
    
    In statements like:
       DebugPrint(,a)
    the first missing argument gives an error 448
    
    The error is now intercepted and replaced by a zero-length string
    in the console display
    
    Change-Id: Id41f2c786ef935e062815f8cf1e80b0a1fec5857
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110327
    Tested-by: Jean-Pierre Ledure <jp at ledure.be>
    Tested-by: Jenkins
    Reviewed-by: Jean-Pierre Ledure <jp at ledure.be>

diff --git a/wizards/source/scriptforge/SF_Exception.xba b/wizards/source/scriptforge/SF_Exception.xba
index fa0db91d06af..8739e0edfa8e 100644
--- a/wizards/source/scriptforge/SF_Exception.xba
+++ b/wizards/source/scriptforge/SF_Exception.xba
@@ -415,6 +415,7 @@ Try:
 	'	Build new console line
 	sOutput = ""
 	For i = 0 To UBound(pvArgs)
+		If IsError(pvArgs(i)) Then pvArgs(i) = ""
 		sArg = Iif(i = 0, "", SF_String.sfTAB) & SF_Utils._Repr(pvArgs(i), cstMaxLength)	'Do not use SF_String.Represent()
 		sOutput = sOutput & sArg
 	Next i


More information about the Libreoffice-commits mailing list