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
2bc67cfc
Commit
2bc67cfc
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 paragraph ptr in the stream in function.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
28735278
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
editor.c
dlls/riched20/editor.c
+14
-16
No files found.
dlls/riched20/editor.c
View file @
2bc67cfc
...
...
@@ -1607,29 +1607,27 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
ME_InternalDeleteText
(
editor
,
selStart
,
to
-
from
,
FALSE
);
/* Don't insert text at the end of the table row */
if
(
!
editor
->
bEmulateVersion10
)
{
/* v4.1 */
ME_DisplayItem
*
para
=
editor
->
pCursors
->
pPara
;
if
(
para
->
member
.
para
.
nFlags
&
MEPF_ROWEND
)
{
para
=
para
->
member
.
para
.
next_para
;
editor
->
pCursors
[
0
].
pPara
=
para
;
editor
->
pCursors
[
0
].
pRun
=
ME_FindItemFwd
(
para
,
diRun
);
editor
->
pCursors
[
0
].
nOffset
=
0
;
}
if
(
para
->
member
.
para
.
nFlags
&
MEPF_ROWSTART
)
if
(
!
editor
->
bEmulateVersion10
)
/* v4.1 */
{
ME_Paragraph
*
para
=
&
editor
->
pCursors
->
pPara
->
member
.
para
;
if
(
para
->
nFlags
&
(
MEPF_ROWSTART
|
MEPF_ROWEND
))
{
para
=
para
->
member
.
para
.
next_para
;
editor
->
pCursors
[
0
].
pPara
=
para
;
editor
->
pCursors
[
0
].
pRun
=
ME_FindItemFwd
(
para
,
diRun
);
para
=
para
_next
(
para
)
;
editor
->
pCursors
[
0
].
pPara
=
para
_get_di
(
para
)
;
editor
->
pCursors
[
0
].
pRun
=
run_get_di
(
para_first_run
(
para
)
);
editor
->
pCursors
[
0
].
nOffset
=
0
;
}
editor
->
pCursors
[
1
]
=
editor
->
pCursors
[
0
];
}
else
{
/* v1.0 - 3.0 */
}
else
/* v1.0 - 3.0 */
{
if
(
editor
->
pCursors
[
0
].
pRun
->
member
.
run
.
nFlags
&
MERF_ENDPARA
&&
ME_IsInTable
(
editor
->
pCursors
[
0
].
pRun
))
para_in_table
(
&
editor
->
pCursors
[
0
].
pPara
->
member
.
para
))
return
0
;
}
}
else
{
}
else
{
style
=
editor
->
pBuffer
->
pDefaultStyle
;
ME_AddRefStyle
(
style
);
set_selection_cursors
(
editor
,
0
,
0
);
...
...
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