SynEdit: fix wrong painting of gutter marks in very first paint. Introduced in cbf7a97b7f

This commit is contained in:
Martin 2025-08-03 11:58:42 +02:00
parent 6bba655f67
commit 0245e4756c

View File

@ -119,7 +119,7 @@ begin
Result := -1;
if assigned(FBookMarkOpt) and assigned(FBookMarkOpt.BookmarkImages) and
assigned(FriendEdit) and FriendEdit.HandleAllocated and
(FColumnWidth > 0)
(FBookMarkOpt.BookmarkImages.Width > 0)
then
Result := GetImgListRes(FriendEdit.Canvas, FBookMarkOpt.BookmarkImages).Width;
end;