From 2d382c6ca6a3808c20a7e428cd2cfc610494eef5 Mon Sep 17 00:00:00 2001 From: Ulrich Czekalla Date: Wed, 9 May 2001 17:12:30 +0000 Subject: [PATCH] Fixed a paint problem reported by Mike McCormack. --- controls/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controls/edit.c b/controls/edit.c index ddd7dcbdc8..5920bf497d 100644 --- a/controls/edit.c +++ b/controls/edit.c @@ -3083,7 +3083,7 @@ static void EDIT_EM_ReplaceSel(WND *wnd, EDITSTATE *es, BOOL can_undo, LPCWSTR l hrgn = CreateRectRgn(0, 0, 0, 0); EDIT_BuildLineDefs_ML(wnd, es, s, s + strl, - strl - (es->selection_end - es->selection_start), hrgn); + strl - abs(es->selection_end - es->selection_start), hrgn); } else EDIT_CalcLineWidth_SL(wnd, es); -- 2.32.0.93.g670b81a890