Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
749c80bd
Commit
749c80bd
authored
Oct 08, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Oct 08, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Pass a ME_Paragraph ptr to shape_para().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ef2c6c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
wrap.c
dlls/riched20/wrap.c
+4
-8
No files found.
dlls/riched20/wrap.c
View file @
749c80bd
...
...
@@ -795,21 +795,17 @@ end:
}
static
HRESULT
shape_para
(
ME_Context
*
c
,
ME_
DisplayItem
*
p
)
static
HRESULT
shape_para
(
ME_Context
*
c
,
ME_
Paragraph
*
para
)
{
ME_DisplayItem
*
di
;
ME_Run
*
run
;
HRESULT
hr
;
for
(
di
=
p
->
next
;
di
!=
p
->
member
.
para
.
next_para
;
di
=
di
->
next
)
for
(
run
=
para_first_run
(
para
);
run
;
run
=
run_next
(
run
)
)
{
if
(
di
->
type
!=
diRun
)
continue
;
run
=
&
di
->
member
.
run
;
hr
=
shape_run
(
c
,
run
);
if
(
FAILED
(
hr
))
{
run
->
para
->
nFlags
&=
~
MEPF_COMPLEX
;
para
->
nFlags
&=
~
MEPF_COMPLEX
;
return
hr
;
}
}
...
...
@@ -835,7 +831,7 @@ static void ME_WrapTextParagraph( ME_TextEditor *editor, ME_Context *c, ME_Parag
ScriptIsComplex( tp->member.para.text->szData, tp->member.para.text->nLen, SIC_COMPLEX ) == S_OK */
)
{
if
(
SUCCEEDED
(
itemize_para
(
c
,
para
)
))
shape_para
(
c
,
para
_get_di
(
para
)
);
shape_para
(
c
,
para
);
}
wc
.
context
=
c
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment