Fix typo in code
It passed "make check" on Linux Change-Id: I860ce01077f1b71fa87eb6616cca676ef21af1a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103307 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.timar@collabora.com>
This commit is contained in:
committed by
Andras Timar
parent
9ad61fe99f
commit
07451fb643
@@ -294,7 +294,7 @@ Function InitResources(Description) as boolean
|
|||||||
Dim xResource as Object
|
Dim xResource as Object
|
||||||
Dim sOfficeDir as String
|
Dim sOfficeDir as String
|
||||||
Dim aArgs(5) as Any
|
Dim aArgs(5) as Any
|
||||||
On Error Goto ErrorOcurred
|
On Error Goto ErrorOccurred
|
||||||
sOfficeDir = "$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/wizards/"
|
sOfficeDir = "$BRAND_BASE_DIR/$BRAND_SHARE_SUBDIR/wizards/"
|
||||||
sOfficeDir = GetDefaultContext.getByName("/singletons/com.sun.star.util.theMacroExpander").ExpandMacros(sOfficeDir)
|
sOfficeDir = GetDefaultContext.getByName("/singletons/com.sun.star.util.theMacroExpander").ExpandMacros(sOfficeDir)
|
||||||
aArgs(0) = sOfficeDir
|
aArgs(0) = sOfficeDir
|
||||||
@@ -311,7 +311,7 @@ Dim aArgs(5) as Any
|
|||||||
InitResources = TRUE
|
InitResources = TRUE
|
||||||
End If
|
End If
|
||||||
Exit Function
|
Exit Function
|
||||||
ErrorOcurred:
|
ErrorOccurred:
|
||||||
Dim nSolarVer
|
Dim nSolarVer
|
||||||
InitResources = FALSE
|
InitResources = FALSE
|
||||||
nSolarVer = GetSolarVersion()
|
nSolarVer = GetSolarVersion()
|
||||||
@@ -323,7 +323,7 @@ End Function
|
|||||||
|
|
||||||
Function GetResText( sID as String ) As string
|
Function GetResText( sID as String ) As string
|
||||||
Dim sString as String
|
Dim sString as String
|
||||||
On Error Goto ErrorOcurred
|
On Error Goto ErrorOccurred
|
||||||
If Not IsNull(oResSrv) Then
|
If Not IsNull(oResSrv) Then
|
||||||
sString = oResSrv.resolveString(sID)
|
sString = oResSrv.resolveString(sID)
|
||||||
GetResText = ReplaceString(sString, GetProductname(), "%PRODUCTNAME")
|
GetResText = ReplaceString(sString, GetProductname(), "%PRODUCTNAME")
|
||||||
@@ -331,7 +331,7 @@ Dim sString as String
|
|||||||
GetResText = ""
|
GetResText = ""
|
||||||
End If
|
End If
|
||||||
Exit Function
|
Exit Function
|
||||||
ErrorOcurred:
|
ErrorOccurred:
|
||||||
GetResText = ""
|
GetResText = ""
|
||||||
MsgBox("Resource with ID =" + sID + " not found!", 16, GetProductName())
|
MsgBox("Resource with ID =" + sID + " not found!", 16, GetProductName())
|
||||||
Resume CLERROR
|
Resume CLERROR
|
||||||
|
Reference in New Issue
Block a user