Skip to content

Commit 6f50781

Browse files
committed
bugfix: Position 0 for Mid()
1 parent 375f0e1 commit 6f50781

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/OOoLilyPond/LilyPond.xba

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ Sub ParseOutput(sFile as String)
297297
If isArray(vArray) Then
298298
If UBound(vArray)>=(LBound(vArray)+4+iWinComp) Then
299299
iStartPos = Len (vArray(LBound(vArray)+iWinComp)) - iNameLength
300-
if iStartPos < 0 Then ' make sure that arguments for Mid(...) are valid
301-
iStartPos = 0
300+
if iStartPos < 1 Then ' make sure that arguments for Mid(...) are valid
301+
iStartPos = 1
302302
End If
303303
If Mid (vArray(LBound(vArray)+iWinComp), iStartPos) = constOLyFileName & ".ly" Then
304304
iNErr = iNErr + 1

0 commit comments

Comments
 (0)