Commit 67e13ac2 authored by Benoît Minisini's avatar Benoît Minisini
Browse files

TextEditor: Highlighted text drawing routine should not enter an infinite loop...

TextEditor: Highlighted text drawing routine should not enter an infinite loop anymore when the highlighted color information is incoherent.

[GB.FORM.EDITOR]
* BUG: TextEditor: Highlighted text drawing routine should not enter an infinite loop anymore when the highlighted color information is incoherent.
parent a4f96ba0
Pipeline #331548574 passed with stage
in 24 minutes and 21 seconds
......@@ -889,8 +889,6 @@ Fast Private Sub DrawHighlightedText(Row As Integer, sText As String, aColor As
If P + iLen >= iNextBreak Then
bBreak = True
iRest = P + iLen - iNextBreak
iLen = iNextBreak - P
......@@ -902,9 +900,11 @@ Fast Private Sub DrawHighlightedText(Row As Integer, sText As String, aColor As
iNextBreak = Len(sText) + 1
Endif
If iLen <= 0 Then Goto NEXT_PATTERN
If iRest Then I -= 2
If iLen = 0 Then Goto NEXT_PATTERN
bBreak = True
Endif
......
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