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
e4007e9f
Commit
e4007e9f
authored
Jul 10, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Removed redundant wrapping code.
Lines in ME_WrapHandleRun were removed because ME_CalcRunExtent is already called unconditionally just before it in the call to ME_WrapSizeRun.
parent
93e76ece
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
wrap.c
dlls/riched20/wrap.c
+0
-12
No files found.
dlls/riched20/wrap.c
View file @
e4007e9f
...
...
@@ -320,12 +320,6 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p)
ME_InsertRowStart
(
wc
,
p
);
return
p
;
}
/* we're not at the end of the row */
if
(
run
->
nFlags
&
MERF_TAB
)
{
/* force recomputation of tabs' size as it depends on position */
ME_CalcRunExtent
(
wc
->
context
,
&
ME_GetParagraph
(
p
)
->
member
.
para
,
wc
->
nRow
?
wc
->
nLeftMargin
:
wc
->
nFirstMargin
,
run
);
}
/* will current run fit? */
if
(
wc
->
pt
.
x
+
run
->
nWidth
>
wc
->
nAvailWidth
)
...
...
@@ -423,12 +417,6 @@ static void ME_WrapTextParagraph(ME_Context *c, ME_DisplayItem *tp, DWORD begino
wc
.
pt
.
y
+=
border
;
}
if
(
c
->
editor
->
bWordWrap
)
wc
.
nAvailWidth
=
c
->
rcView
.
right
-
c
->
rcView
.
left
-
wc
.
nFirstMargin
-
wc
.
nRightMargin
;
else
wc
.
nAvailWidth
=
~
0u
>>
1
;
wc
.
pRowStart
=
NULL
;
linespace
=
ME_GetParaLineSpace
(
c
,
&
tp
->
member
.
para
);
ME_BeginRow
(
&
wc
);
...
...
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