richedit: Fixed regression in ME_SetCharFormat.

Dylan Smith dylan.ah.smith at gmail.com
Thu Aug 13 00:25:30 CDT 2009


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(-)
-------------- next part --------------
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;


More information about the wine-patches mailing list