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
d132009a
Commit
d132009a
authored
Oct 07, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Oct 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Maintain a ptr to the end-of-paragraph run.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1abe4cc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
editstr.h
dlls/riched20/editstr.h
+1
-0
para.c
dlls/riched20/para.c
+9
-0
No files found.
dlls/riched20/editstr.h
View file @
d132009a
...
@@ -201,6 +201,7 @@ typedef struct tagME_Paragraph
...
@@ -201,6 +201,7 @@ typedef struct tagME_Paragraph
POINT
pt
;
POINT
pt
;
int
nHeight
,
nWidth
;
int
nHeight
,
nWidth
;
int
nRows
;
int
nRows
;
ME_Run
*
eop_run
;
/* ptr to the end-of-para run */
struct
tagME_DisplayItem
*
prev_para
,
*
next_para
;
struct
tagME_DisplayItem
*
prev_para
,
*
next_para
;
}
ME_Paragraph
;
}
ME_Paragraph
;
...
...
dlls/riched20/para.c
View file @
d132009a
...
@@ -81,6 +81,8 @@ void ME_MakeFirstParagraph(ME_TextEditor *editor)
...
@@ -81,6 +81,8 @@ void ME_MakeFirstParagraph(ME_TextEditor *editor)
run
->
member
.
run
.
len
=
eol_len
;
run
->
member
.
run
.
len
=
eol_len
;
run
->
member
.
run
.
para
=
&
para
->
member
.
para
;
run
->
member
.
run
.
para
=
&
para
->
member
.
para
;
para
->
member
.
para
.
eop_run
=
&
run
->
member
.
run
;
ME_InsertBefore
(
text
->
pLast
,
para
);
ME_InsertBefore
(
text
->
pLast
,
para
);
ME_InsertBefore
(
text
->
pLast
,
run
);
ME_InsertBefore
(
text
->
pLast
,
run
);
para
->
member
.
para
.
prev_para
=
text
->
pFirst
;
para
->
member
.
para
.
prev_para
=
text
->
pFirst
;
...
@@ -272,6 +274,10 @@ ME_DisplayItem *ME_SplitParagraph(ME_TextEditor *editor, ME_DisplayItem *run,
...
@@ -272,6 +274,10 @@ ME_DisplayItem *ME_SplitParagraph(ME_TextEditor *editor, ME_DisplayItem *run,
ME_InsertBefore
(
run
,
new_para
);
ME_InsertBefore
(
run
,
new_para
);
ME_InsertBefore
(
new_para
,
end_run
);
ME_InsertBefore
(
new_para
,
end_run
);
/* Fix up the paras' eop_run ptrs */
new_para
->
member
.
para
.
eop_run
=
run_para
->
member
.
para
.
eop_run
;
run_para
->
member
.
para
.
eop_run
=
&
end_run
->
member
.
run
;
if
(
!
editor
->
bEmulateVersion10
)
{
/* v4.1 */
if
(
!
editor
->
bEmulateVersion10
)
{
/* v4.1 */
if
(
paraFlags
&
(
MEPF_ROWSTART
|
MEPF_CELL
))
if
(
paraFlags
&
(
MEPF_ROWSTART
|
MEPF_CELL
))
{
{
...
@@ -429,6 +435,9 @@ ME_DisplayItem *ME_JoinParagraphs(ME_TextEditor *editor, ME_DisplayItem *tp,
...
@@ -429,6 +435,9 @@ ME_DisplayItem *ME_JoinParagraphs(ME_TextEditor *editor, ME_DisplayItem *tp,
pTmp
->
member
.
run
.
para
=
&
tp
->
member
.
para
;
pTmp
->
member
.
run
.
para
=
&
tp
->
member
.
para
;
}
while
(
1
);
}
while
(
1
);
/* Fix up the para's eop_run ptr */
tp
->
member
.
para
.
eop_run
=
pNext
->
member
.
para
.
eop_run
;
ME_Remove
(
pRun
);
ME_Remove
(
pRun
);
ME_DestroyDisplayItem
(
pRun
);
ME_DestroyDisplayItem
(
pRun
);
...
...
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