From 90f044e433c4ce86b1dd69507d2ca37ce28a47bd Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 18 Feb 2012 14:20:00 +0000 Subject: [PATCH] SynEdit: Painting issue with Syncro icon git-svn-id: trunk@35446 - --- components/synedit/synpluginsyncroedit.pp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/synedit/synpluginsyncroedit.pp b/components/synedit/synpluginsyncroedit.pp index 3b16641639..6aa43501c4 100644 --- a/components/synedit/synpluginsyncroedit.pp +++ b/components/synedit/synpluginsyncroedit.pp @@ -739,13 +739,15 @@ begin if FGlyphLastLine <> -2 then begin if SynEdit.HandleAllocated then begin rcInval := GetGutterGlyphRect(FGlyphLastLine); + // and make sure we trigger the Markup // TODO: triigger markup on gutter paint too + rcInval.Right := Max(rcInval.Right, TCustomSynEdit(SynEdit).ClientRect.Right); InvalidateRect(SynEdit.Handle, @rcInval, False); end; end; if SynEdit.HandleAllocated then begin rcInval := GetGutterGlyphRect; // and make sure we trigger the Markup // TODO: triigger markup on gutter paint too - rcInval.Right := Max(rcInval.Right, TCustomSynEdit(SynEdit).Gutter.Width + 2); + rcInval.Right := Max(rcInval.Right, TCustomSynEdit(SynEdit).ClientRect.Right); InvalidateRect(SynEdit.Handle, @rcInval, False); end; end;