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
12bc51ca
Commit
12bc51ca
authored
Jul 08, 2008
by
Dylan Smith
Committed by
Alexandre Julliard
Jul 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
richedit: Fixed 2 minor paragraph format effect errors.
In ME_SetParaFormat the wEffects that were being set needed to be set rather than the dwMask.
parent
8172d69e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
para.c
dlls/riched20/para.c
+4
-2
No files found.
dlls/riched20/para.c
View file @
12bc51ca
...
...
@@ -367,7 +367,8 @@ void ME_SetParaFormat(ME_TextEditor *editor, ME_DisplayItem *para, const PARAFOR
PFM_TABLE)
/* we take for granted that PFE_xxx is the hiword of the corresponding PFM_xxx */
if
(
pFmt
->
dwMask
&
EFFECTS_MASK
)
{
para
->
member
.
para
.
pFmt
->
dwMask
&=
~
(
pFmt
->
dwMask
&
EFFECTS_MASK
);
para
->
member
.
para
.
pFmt
->
dwMask
|=
pFmt
->
dwMask
&
EFFECTS_MASK
;
para
->
member
.
para
.
pFmt
->
wEffects
&=
~
HIWORD
(
pFmt
->
dwMask
);
para
->
member
.
para
.
pFmt
->
wEffects
|=
pFmt
->
wEffects
&
HIWORD
(
pFmt
->
dwMask
);
}
#undef EFFECTS_MASK
...
...
@@ -464,6 +465,7 @@ void ME_GetSelectionParaFormat(ME_TextEditor *editor, PARAFORMAT2 *pFmt)
ME_GetParaFormat
(
editor
,
para
,
pFmt
);
if
(
para
==
para_end
)
return
;
/* Invalidate values that change across the selected paragraphs. */
do
{
ZeroMemory
(
&
tmp
,
sizeof
(
tmp
));
tmp
.
cbSize
=
sizeof
(
tmp
);
...
...
@@ -472,8 +474,8 @@ void ME_GetSelectionParaFormat(ME_TextEditor *editor, PARAFORMAT2 *pFmt)
#define CHECK_FIELD(m, f) \
if (pFmt->f != tmp.f) pFmt->dwMask &= ~(m);
pFmt
->
dwMask
&=
~
((
pFmt
->
wEffects
^
tmp
.
wEffects
)
<<
16
);
CHECK_FIELD
(
PFM_NUMBERING
,
wNumbering
);
/* para->member.para.pFmt->wEffects = pFmt->wEffects; */
assert
(
tmp
.
dwMask
&
PFM_ALIGNMENT
);
CHECK_FIELD
(
PFM_NUMBERING
,
wNumbering
);
assert
(
tmp
.
dwMask
&
PFM_STARTINDENT
);
...
...
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