Commit 326f9b3f authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

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.
parent 9c7ded09
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment