|
@@ -294,7 +294,7 @@ begin
|
|
begin
|
|
begin
|
|
delCount := GetTextLayoutIgnoreMatrix.DeleteTextBefore(selLeft, ACount);
|
|
delCount := GetTextLayoutIgnoreMatrix.DeleteTextBefore(selLeft, ACount);
|
|
FText := GetTextLayoutIgnoreMatrix.TextUTF8;
|
|
FText := GetTextLayoutIgnoreMatrix.TextUTF8;
|
|
- dec(selLeft,ACount);
|
|
|
|
|
|
+ dec(selLeft,delCount);
|
|
end;
|
|
end;
|
|
FSelStart := selLeft;
|
|
FSelStart := selLeft;
|
|
FSelEnd := selLeft;
|
|
FSelEnd := selLeft;
|
|
@@ -311,7 +311,7 @@ begin
|
|
begin
|
|
begin
|
|
delCount := GetTextLayoutIgnoreMatrix.DeleteText(selRight, ACount);
|
|
delCount := GetTextLayoutIgnoreMatrix.DeleteText(selRight, ACount);
|
|
FText := GetTextLayoutIgnoreMatrix.TextUTF8;
|
|
FText := GetTextLayoutIgnoreMatrix.TextUTF8;
|
|
- inc(selRight,ACount);
|
|
|
|
|
|
+ inc(selRight,delCount);
|
|
end;
|
|
end;
|
|
FSelStart := selRight;
|
|
FSelStart := selRight;
|
|
FSelEnd := selRight;
|
|
FSelEnd := selRight;
|