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
2c2020dd
Commit
2c2020dd
authored
Oct 23, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Oct 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use cell ptrs in the table position to offset function.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2809ac2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
caret.c
dlls/riched20/caret.c
+7
-7
No files found.
dlls/riched20/caret.c
View file @
2c2020dd
...
...
@@ -880,21 +880,21 @@ int ME_GetCursorOfs(const ME_Cursor *cursor)
/* Helper function for ME_FindPixelPos to find paragraph within tables */
static
ME_Paragraph
*
pixel_pos_in_table_row
(
int
x
,
int
y
,
ME_Paragraph
*
para
)
{
ME_
DisplayItem
*
cell
,
*
next_cell
;
ME_
Cell
*
cell
,
*
next_cell
;
assert
(
para
->
nFlags
&
MEPF_ROWSTART
);
cell
=
para_next
(
para
)
->
pCell
;
assert
(
cell
);
cell
=
table_row_first_cell
(
para
)
;
assert
(
cell
);
/* find the cell we are in */
while
((
next_cell
=
cell
->
member
.
cell
.
next_cell
)
!=
NULL
)
while
((
next_cell
=
cell
_next
(
cell
)
)
!=
NULL
)
{
if
(
x
<
next_cell
->
member
.
cell
.
pt
.
x
)
if
(
x
<
next_cell
->
pt
.
x
)
{
para
=
&
ME_FindItemFwd
(
cell
,
diParagraph
)
->
member
.
para
;
para
=
cell_first_para
(
cell
)
;
/* Found the cell, but there might be multiple paragraphs in
* the cell, so need to search down the cell for the paragraph. */
while
(
cell
==
para
->
pCell
)
while
(
cell
==
para
_cell
(
para
)
)
{
if
(
y
<
para
->
pt
.
y
+
para
->
nHeight
)
{
...
...
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