Module: wine Branch: master Commit: 326f9b3f3f1dc6c1dab0e14c73ea58739f7c2a53 URL: http://source.winehq.org/git/wine.git/?a=commit;h=326f9b3f3f1dc6c1dab0e14c73...
Author: Dylan Smith dylan.ah.smith@gmail.com Date: Thu Aug 13 01:25:30 2009 -0400
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 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c index 7b790eb..64befb8 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;