Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
0c9d5ebf
Commit
0c9d5ebf
authored
Oct 30, 2020
by
Huw Davies
Committed by
Alexandre Julliard
Oct 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Use a run ptr in the rtf row handler.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a0f0dc1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
editor.c
dlls/riched20/editor.c
+5
-5
No files found.
dlls/riched20/editor.c
View file @
0c9d5ebf
...
...
@@ -987,7 +987,7 @@ void ME_RTFSpecialCharHook(RTF_Info *info)
/* else fall through since v4.1 treats rtfNestRow and rtfRow the same */
case
rtfRow
:
{
ME_
DisplayItem
*
run
;
ME_
Run
*
run
;
ME_Paragraph
*
para
;
ME_Cell
*
cell
;
int
i
;
...
...
@@ -1042,14 +1042,14 @@ void ME_RTFSpecialCharHook(RTF_Info *info)
cell
->
nRightBoundary
=
tableDef
->
cells
[
i
-
1
].
rightBoundary
;
}
run
=
ME_FindItemFwd
(
cell_get_di
(
cell
)
,
diRun
);
if
(
info
->
editor
->
pCursors
[
0
].
pR
un
!=
run
||
run
=
para_first_run
(
cell_first_para
(
cell
)
);
if
(
&
info
->
editor
->
pCursors
[
0
].
pRun
->
member
.
r
un
!=
run
||
info
->
editor
->
pCursors
[
0
].
nOffset
)
{
int
nOfs
,
nChars
;
/* Delete inserted cells that aren't defined. */
info
->
editor
->
pCursors
[
1
].
pRun
=
run
;
info
->
editor
->
pCursors
[
1
].
pPara
=
ME_GetParagraph
(
run
);
info
->
editor
->
pCursors
[
1
].
pRun
=
run
_get_di
(
run
)
;
info
->
editor
->
pCursors
[
1
].
pPara
=
para_get_di
(
run
->
para
);
info
->
editor
->
pCursors
[
1
].
nOffset
=
0
;
nOfs
=
ME_GetCursorOfs
(
&
info
->
editor
->
pCursors
[
1
]);
nChars
=
ME_GetCursorOfs
(
&
info
->
editor
->
pCursors
[
0
])
-
nOfs
;
...
...
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