From e214f58fc15e149196da0bd88c55a08cc9ad7cea Mon Sep 17 00:00:00 2001 From: Alexey Date: Thu, 25 Apr 2024 21:20:10 +0300 Subject: [PATCH] cmt --- app/proc_editor_micromap.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/app/proc_editor_micromap.pas b/app/proc_editor_micromap.pas index 3e5947ab74c..5c2e0f88f84 100644 --- a/app/proc_editor_micromap.pas +++ b/app/proc_editor_micromap.pas @@ -133,6 +133,7 @@ procedure EditorPaintMicromap(Ed: TATSynEdit; ACanvas: TCanvas; const ARect: TRe if Ed.OptLastLineOnTop then NScaleDiv:= Max(1, NScaleDiv+Ed.GetVisibleLines-1); + //decrement NRectHeight if editor has too many lines NRectHeight:= ARect.Height; i:= Ed.GetVisibleLines * NRectHeight div NScaleDiv; if i < UiOps.MicromapMinViewareaHeight then