riched20: Use a helper to retrieve the first run.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2020-10-28 08:43:53 +00:00 committed by Alexandre Julliard
parent 6b9b7b2d0b
commit 5d179e4b39
1 changed files with 1 additions and 1 deletions

View File

@ -886,7 +886,7 @@ static void ME_WrapTextParagraph( ME_TextEditor *editor, ME_Context *c, ME_Parag
linespace = ME_GetParaLineSpace( c, para ); linespace = ME_GetParaLineSpace( c, para );
ME_BeginRow( &wc ); ME_BeginRow( &wc );
run = &ME_FindItemFwd( para_get_di( para ), diRun )->member.run; run = para_first_run( para );
while (run) while (run)
{ {
run = ME_WrapHandleRun( &wc, run ); run = ME_WrapHandleRun( &wc, run );