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
77f1894f
Commit
77f1894f
authored
Oct 16, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Oct 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Pass a paragraph ptr to the table update flags function.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
18d1b245
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
18 deletions
+15
-18
para.c
dlls/riched20/para.c
+15
-18
No files found.
dlls/riched20/para.c
View file @
77f1894f
...
...
@@ -211,23 +211,20 @@ void ME_MarkAllForWrapping(ME_TextEditor *editor)
ME_MarkForWrapping
(
editor
,
editor
->
pBuffer
->
pFirst
->
member
.
para
.
next_para
,
editor
->
pBuffer
->
pLast
);
}
static
void
ME_UpdateTableFlags
(
ME_DisplayItem
*
para
)
static
void
table_update_flags
(
ME_Paragraph
*
para
)
{
para
->
member
.
para
.
fmt
.
dwMask
|=
PFM_TABLE
|
PFM_TABLEROWDELIMITER
;
if
(
para
->
member
.
para
.
pCell
)
{
para
->
member
.
para
.
nFlags
|=
MEPF_CELL
;
}
else
{
para
->
member
.
para
.
nFlags
&=
~
MEPF_CELL
;
}
if
(
para
->
member
.
para
.
nFlags
&
MEPF_ROWEND
)
{
para
->
member
.
para
.
fmt
.
wEffects
|=
PFE_TABLEROWDELIMITER
;
}
else
{
para
->
member
.
para
.
fmt
.
wEffects
&=
~
PFE_TABLEROWDELIMITER
;
}
if
(
para
->
member
.
para
.
nFlags
&
(
MEPF_ROWSTART
|
MEPF_CELL
|
MEPF_ROWEND
))
para
->
member
.
para
.
fmt
.
wEffects
|=
PFE_TABLE
;
else
para
->
member
.
para
.
fmt
.
wEffects
&=
~
PFE_TABLE
;
para
->
fmt
.
dwMask
|=
PFM_TABLE
|
PFM_TABLEROWDELIMITER
;
if
(
para
->
pCell
)
para
->
nFlags
|=
MEPF_CELL
;
else
para
->
nFlags
&=
~
MEPF_CELL
;
if
(
para
->
nFlags
&
MEPF_ROWEND
)
para
->
fmt
.
wEffects
|=
PFE_TABLEROWDELIMITER
;
else
para
->
fmt
.
wEffects
&=
~
PFE_TABLEROWDELIMITER
;
if
(
para
->
nFlags
&
(
MEPF_ROWSTART
|
MEPF_CELL
|
MEPF_ROWEND
))
para
->
fmt
.
wEffects
|=
PFE_TABLE
;
else
para
->
fmt
.
wEffects
&=
~
PFE_TABLE
;
}
static
inline
BOOL
para_num_same_list
(
const
PARAFORMAT2
*
item
,
const
PARAFORMAT2
*
base
)
...
...
@@ -638,8 +635,8 @@ ME_DisplayItem *ME_SplitParagraph(ME_TextEditor *editor, ME_DisplayItem *run,
}
else
{
new_para
->
member
.
para
.
pCell
=
run_para
->
member
.
para
.
pCell
;
}
ME_UpdateTableFlags
(
run_para
);
ME_UpdateTableFlags
(
new_para
);
table_update_flags
(
&
run_para
->
member
.
para
);
table_update_flags
(
&
new_para
->
member
.
para
);
}
/* force rewrap of the */
...
...
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