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
3f0c4d5c
Commit
3f0c4d5c
authored
Nov 09, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Nov 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Move the code to clear the cell bottom out of the loop.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
378a86b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
13 deletions
+11
-13
paint.c
dlls/riched20/paint.c
+11
-13
No files found.
dlls/riched20/paint.c
View file @
3f0c4d5c
...
...
@@ -1015,26 +1015,24 @@ static void draw_paragraph( ME_Context *c, ME_Paragraph *para )
ME_DebugWrite
(
c
->
hDC
,
&
pt
,
buf
);
}
break
;
case
diCell
:
/* Clear any space at the bottom of the cell after the text. */
if
(
para
->
nFlags
&
(
MEPF_ROWSTART
|
MEPF_ROWEND
))
break
;
y
+=
height
;
rc
.
top
=
c
->
pt
.
y
+
para
->
pt
.
y
+
para
->
nHeight
;
rc
.
bottom
=
c
->
pt
.
y
+
p
->
member
.
cell
.
pt
.
y
+
p
->
member
.
cell
.
nHeight
;
if
(
RectVisible
(
c
->
hDC
,
&
rc
))
PatBlt
(
c
->
hDC
,
rc
.
left
,
rc
.
top
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
PATCOPY
);
break
;
default:
break
;
}
no
++
;
}
draw_table_borders
(
c
,
para
);
draw_para_number
(
c
,
para
);
if
(
para_cell
(
para
))
{
/* Clear any space at the bottom of the cell after the text. */
rc
.
top
=
c
->
pt
.
y
+
para
->
pt
.
y
+
para
->
nHeight
;
rc
.
bottom
=
c
->
pt
.
y
+
cell
->
pt
.
y
+
cell
->
nHeight
;
PatBlt
(
c
->
hDC
,
rc
.
left
,
rc
.
top
,
rc
.
right
-
rc
.
left
,
rc
.
bottom
-
rc
.
top
,
PATCOPY
);
}
draw_table_borders
(
c
,
para
);
draw_para_number
(
c
,
para
);
SetTextAlign
(
c
->
hDC
,
align
);
SetTextAlign
(
c
->
hDC
,
align
);
}
void
ME_ScrollAbs
(
ME_TextEditor
*
editor
,
int
x
,
int
y
)
...
...
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