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
822ae486
Commit
822ae486
authored
Oct 10, 2005
by
Krzysztof Foltman
Committed by
Alexandre Julliard
Oct 10, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The previous implementation was a workaround for off-by-one bug in
ME_RunOfsFromCharOfs, this one relies on correct behavior of that function introduced by the previous patch.
parent
9b748c8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
editor.c
dlls/riched20/editor.c
+6
-1
No files found.
dlls/riched20/editor.c
View file @
822ae486
...
@@ -1724,10 +1724,15 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
...
@@ -1724,10 +1724,15 @@ LRESULT WINAPI RichEditANSIWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
nCharOfs
=
lParam
;
nCharOfs
=
lParam
;
nLength
=
ME_GetTextLength
(
editor
);
nLength
=
ME_GetTextLength
(
editor
);
if
(
nCharOfs
<
nLength
-
1
)
{
if
(
nCharOfs
<
nLength
)
{
ME_RunOfsFromCharOfs
(
editor
,
nCharOfs
,
&
pRun
,
&
nOffset
);
ME_RunOfsFromCharOfs
(
editor
,
nCharOfs
,
&
pRun
,
&
nOffset
);
assert
(
pRun
->
type
==
diRun
);
pt
.
y
=
pRun
->
member
.
run
.
pt
.
y
;
pt
.
y
=
pRun
->
member
.
run
.
pt
.
y
;
pt
.
x
=
pRun
->
member
.
run
.
pt
.
x
+
ME_PointFromChar
(
editor
,
&
pRun
->
member
.
run
,
nOffset
);
pt
.
x
=
pRun
->
member
.
run
.
pt
.
x
+
ME_PointFromChar
(
editor
,
&
pRun
->
member
.
run
,
nOffset
);
pt
.
y
+=
ME_GetParagraph
(
pRun
)
->
member
.
para
.
nYPos
;
}
else
{
pt
.
x
=
0
;
pt
.
y
=
editor
->
pBuffer
->
pLast
->
member
.
para
.
nYPos
;
}
}
pt
.
y
+=
ME_GetParagraph
(
pRun
)
->
member
.
para
.
nYPos
;
pt
.
y
+=
ME_GetParagraph
(
pRun
)
->
member
.
para
.
nYPos
;
if
(
wParam
>=
0x40000
)
{
if
(
wParam
>=
0x40000
)
{
...
...
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