mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-23 20:50:40 +02:00
SynEdit: fix wrong painting of gutter marks in very first paint. Introduced in cbf7a97b7f
This commit is contained in:
parent
6bba655f67
commit
0245e4756c
@ -119,7 +119,7 @@ begin
|
|||||||
Result := -1;
|
Result := -1;
|
||||||
if assigned(FBookMarkOpt) and assigned(FBookMarkOpt.BookmarkImages) and
|
if assigned(FBookMarkOpt) and assigned(FBookMarkOpt.BookmarkImages) and
|
||||||
assigned(FriendEdit) and FriendEdit.HandleAllocated and
|
assigned(FriendEdit) and FriendEdit.HandleAllocated and
|
||||||
(FColumnWidth > 0)
|
(FBookMarkOpt.BookmarkImages.Width > 0)
|
||||||
then
|
then
|
||||||
Result := GetImgListRes(FriendEdit.Canvas, FBookMarkOpt.BookmarkImages).Width;
|
Result := GetImgListRes(FriendEdit.Canvas, FBookMarkOpt.BookmarkImages).Width;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user