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.
This commit is contained in:
Dylan Smith 2009-08-13 01:25:30 -04:00 committed by Alexandre Julliard
parent 9c7ded0973
commit 326f9b3f3f
1 changed files with 2 additions and 0 deletions

View File

@ -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;