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
8a36f2a3
Commit
8a36f2a3
authored
Jul 22, 2005
by
Phil Krylov
Committed by
Alexandre Julliard
Jul 22, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed EM_GETCHARFORMAT for selection containing a single character.
parent
42f3e227
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
run.c
dlls/riched20/run.c
+3
-3
No files found.
dlls/riched20/run.c
View file @
8a36f2a3
...
@@ -642,9 +642,6 @@ void ME_GetCharFormat(ME_TextEditor *editor, int nFrom, int nTo, CHARFORMAT2W *p
...
@@ -642,9 +642,6 @@ void ME_GetCharFormat(ME_TextEditor *editor, int nFrom, int nTo, CHARFORMAT2W *p
int
nOffset
,
nOffset2
;
int
nOffset
,
nOffset2
;
CHARFORMAT2W
tmp
;
CHARFORMAT2W
tmp
;
if
(
nTo
>
nFrom
)
/* selection consists of chars from nFrom up to nTo-1 */
nTo
--
;
ME_RunOfsFromCharOfs
(
editor
,
nFrom
,
&
run
,
&
nOffset
);
ME_RunOfsFromCharOfs
(
editor
,
nFrom
,
&
run
,
&
nOffset
);
if
(
nFrom
==
nTo
)
/* special case - if selection is empty, take previous char's formatting */
if
(
nFrom
==
nTo
)
/* special case - if selection is empty, take previous char's formatting */
{
{
...
@@ -659,6 +656,9 @@ void ME_GetCharFormat(ME_TextEditor *editor, int nFrom, int nTo, CHARFORMAT2W *p
...
@@ -659,6 +656,9 @@ void ME_GetCharFormat(ME_TextEditor *editor, int nFrom, int nTo, CHARFORMAT2W *p
ME_GetRunCharFormat
(
editor
,
run
,
pFmt
);
ME_GetRunCharFormat
(
editor
,
run
,
pFmt
);
return
;
return
;
}
}
if
(
nTo
>
nFrom
)
/* selection consists of chars from nFrom up to nTo-1 */
nTo
--
;
ME_RunOfsFromCharOfs
(
editor
,
nTo
,
&
run_end
,
&
nOffset2
);
ME_RunOfsFromCharOfs
(
editor
,
nTo
,
&
run_end
,
&
nOffset2
);
ME_GetRunCharFormat
(
editor
,
run
,
pFmt
);
ME_GetRunCharFormat
(
editor
,
run
,
pFmt
);
...
...
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