Kaydet (Commit) 08beface authored tarafından Alex McMurchy1917's avatar Alex McMurchy1917 Kaydeden (comit) Katarina Behrens

Fixes tdf#104412 - DirectoryNameoutofPath no longer works

In the macro tools library the subroutine GetFileNameWithoutExtension
has a missing bracket in the last line. This confuses the following
subroutine DirectoryNameoutofPath causing it to fail.

This only came to light after the introduction of commit

"tdf#80731 Closing parenthesis is now detected (Mid statement and functions)."

which tightened up on syntax validation.

This commit adds in the missing bracket to subroutine
GetFileNameWithoutExtension in the macro tools library.

Change-Id: I015c88a29a933cd42b7a7623a9ae70d090739c54
Reviewed-on: https://gerrit.libreoffice.org/31677Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
Tested-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst d752b168
......@@ -345,7 +345,7 @@ Dim SepList() as String
FileName = FileNameoutofPath(FileName, Separator)
End If
SepList() = ArrayoutofString(FileName,&quot;.&quot;, MaxIndex)
GetFileNameWithoutExtension = RTrimStr(FileName, &quot;.&quot; &amp; SepList(MaxIndex)
GetFileNameWithoutExtension = RTrimStr(FileName, &quot;.&quot; &amp; SepList(MaxIndex))
End Function
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment