SynEdit: BiDi painting: fixed endless loop (wrong check for next logic pos)

git-svn-id: trunk@39111 -
This commit is contained in:
martin 2012-10-17 12:16:02 +00:00
parent 4828ed9f53
commit 9ca3e9f405

View File

@ -316,9 +316,7 @@ begin
if (FNextMarkupPhysPos < 0) or
(FCurMarkupNextRtlInfo.IsRtl and (FNextMarkupPhysPos >= FCurMarkupNextStart.Physical)) or
((not FCurMarkupNextRtlInfo.IsRtl) and (FNextMarkupPhysPos <= FCurMarkupNextStart.Physical)) or
(FNextMarkupLogPos < 0) or
(FCurMarkupNextRtlInfo.IsRtl and (FNextMarkupLogPos >= FCurMarkupNextStart.Logical)) or
((not FCurMarkupNextRtlInfo.IsRtl) and (FNextMarkupLogPos <= FCurMarkupNextStart.Logical))
(FNextMarkupLogPos < 0) or (FNextMarkupLogPos <= FCurMarkupNextStart.Logical)
then begin
FMarkupManager.GetNextMarkupColAfterRowCol(FCurTxtLineIdx+1,
FCurMarkupNextStart, FCurMarkupNextRtlInfo, FNextMarkupPhysPos, FNextMarkupLogPos);