[PATCH 1/2] riched20: Implement ITextSelection::GetText. (try 3)

Huw Davies huw at codeweavers.com
Mon Jul 21 04:21:31 CDT 2014


On Sat, Jul 19, 2014 at 01:08:19AM +0800, Jactry Zeng wrote:
> diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
> index 90b30a2..6aa16e9 100644
> --- a/dlls/riched20/caret.c
> +++ b/dlls/riched20/caret.c
> @@ -140,6 +140,7 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to)
>      ME_SetCursorToStart(editor, &editor->pCursors[1]);
>      ME_SetCursorToEnd(editor, &editor->pCursors[0]);
>      ME_InvalidateSelection(editor);
> +    editor->pCursors[0].nOffset = editor->pCursors[0].pRun->member.run.len;
>      return len + 1;
>    }

Sorry, one more issue.  I would expect this cursor fix up needs to be
before the invalidate call.  Was there a reason you put it after?

Huw.



More information about the wine-devel mailing list