From 8534e4aae55ca44494ae8782e8a7e4da7917daa0 Mon Sep 17 00:00:00 2001 From: Mirek Fidler Date: Mon, 3 Feb 2025 23:32:40 +0100 Subject: [PATCH] .RichEdit: cosmetics --- uppsrc/RichEdit/Ruler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/RichEdit/Ruler.cpp b/uppsrc/RichEdit/Ruler.cpp index 6e4be9648..9c4ba43f3 100644 --- a/uppsrc/RichEdit/Ruler.cpp +++ b/uppsrc/RichEdit/Ruler.cpp @@ -61,7 +61,7 @@ void RichRuler::Paint(Draw& w) } } DrawFrame(w, RectC(x0 - Zx(1), Zy(3), cx + Zx(3), sz.cy - Zy(6)), SColorText()); - w.Clip(0, 0, x0 + cx + DPI(1), sz.cy); + w.Clip(0, 0, x0 + cx + RichEditImg::Margin().GetWidth() / 2, sz.cy); for(i = marker.GetCount() - 1; i >= 0; --i) { const Marker& m = marker[i]; if(!IsNull(m.pos))