mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-16 23:49:28 +02:00
SynEdit: fix crash if no images are assigned to bookmarks
git-svn-id: trunk@27890 -
This commit is contained in:
parent
0628b67c7e
commit
ab1847a0fb
@ -182,7 +182,10 @@ begin
|
||||
Canvas.Brush.Color := Gutter.Color;
|
||||
LCLIntf.SetBkColor(Canvas.Handle, Canvas.Brush.Color);
|
||||
|
||||
FColumnWidth := FBookMarkOpt.BookmarkImages.Width;
|
||||
if assigned(FBookMarkOpt) and assigned(FBookMarkOpt.BookmarkImages) then
|
||||
FColumnWidth := FBookMarkOpt.BookmarkImages.Width
|
||||
else
|
||||
FColumnWidth := Width;
|
||||
FColumnCount := Max((Width+1) div FColumnWidth, 1); // full columns
|
||||
|
||||
if FBookMarkOpt.GlyphsVisible and (LastLine >= FirstLine) then
|
||||
|
Loading…
Reference in New Issue
Block a user