From 326f9b3f3f1dc6c1dab0e14c73ea58739f7c2a53 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Thu, 13 Aug 2009 01:25:30 -0400 Subject: [PATCH] richedit: Fixed regression in ME_SetCharFormat. Missed an assignment for end_run when the end cursor is provided and the end position doesn't cause a split. --- dlls/riched20/run.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c index 7b790eba4e1..64befb814ce 100644 --- a/dlls/riched20/run.c +++ b/dlls/riched20/run.c @@ -787,6 +787,8 @@ void ME_SetCharFormat(ME_TextEditor *editor, ME_Cursor *start, ME_Cursor *end, C { end_run = end->pRun = ME_SplitRunSimple(editor, end->pRun, end->nOffset); end->nOffset = 0; + } else if (end) { + end_run = end->pRun; } run = start->pRun;