Revert 49089 #a8cb48d453 / Issue #0028019

git-svn-id: branches/fixes_1_4@49113 -
This commit is contained in:
martin 2015-05-19 21:24:14 +00:00
parent 1b7f6b9ab6
commit 14a63b91cd

View File

@ -361,7 +361,7 @@ type
FCustomOffsetX, FCustomOffsetY: Array [TSynCaretType] of Integer;
FCurrentPosX, FCurrentPosY: Integer;
FCurrentVisible, FCurrentCreated: Boolean;
FCurrentClippedWidth, FCurrentClippedHeight: Integer;
FCurrentClippedWidth: Integer;
FLockCount: Integer;
FLockFlags: TSynCaretLockFlags;
procedure SetClipBottom(const AValue: Integer);
@ -2236,7 +2236,6 @@ begin
FCurrentPosX := -1;
FCurrentPosY := -1;
FCurrentClippedWidth := -1;
FCurrentClippedHeight := -1;
FClipExtraPixel := 0;
FLockCount := 0;
end;
@ -2523,7 +2522,7 @@ begin
exit;
end;
if (not FCurrentCreated) or (FCurrentClippedWidth <> w) or (FCurrentClippedHeight <> h) then begin
if (not FCurrentCreated) or (FCurrentClippedWidth <> w) then begin
{$IFDeF SynCaretDebug}
debugln(['SynEditCaret CreateCaret for HandleOwner=',FHandleOwner, ' DebugShowCount=', FDebugShowCount, ' Width=', w, ' pref-width=', FPixelWidth, ' Height=', FPixelHeight, ' FCurrentCreated=',FCurrentCreated, ' FCurrentVisible=',FCurrentVisible]);
FDebugShowCount := 0;
@ -2535,7 +2534,6 @@ begin
FCurrentCreated := True;
FCurrentVisible := False;
FCurrentClippedWidth := w;
FCurrentClippedHeight := h;
FCurrentPosX := x - 1;
SetCaretRespondToFocus(Handle, False); // Only for GTK
end;