Skip to content

Commit

Permalink
Language editor: fix off-by-one error when counting translations
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerhelland committed Mar 15, 2024
1 parent 3c83a8c commit 1656ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Forms/Tools_LanguageEditor.frm
Expand Up @@ -1532,7 +1532,7 @@ End Sub
'The phrase list box label will automatically be updated with the current count of list items
Private Sub UpdatePhraseBoxTitle()
Dim numPhrasesDisplay As Long
If (lstPhrases.ListCount > 0) Then numPhrasesDisplay = lstPhrases.ListCount - 1 Else numPhrasesDisplay = 0
If (lstPhrases.ListCount > 0) Then numPhrasesDisplay = lstPhrases.ListCount Else numPhrasesDisplay = 0
lstPhrases.Caption = g_Language.TranslateMessage("list of phrases (%1 items)", numPhrasesDisplay)
End Sub

Expand Down

0 comments on commit 1656ad0

Please sign in to comment.