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
57446cee
Commit
57446cee
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: Reset the numbering style info after a \pard .
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ab65c269
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
editor.c
dlls/riched20/editor.c
+8
-2
editor.c
dlls/riched20/tests/editor.c
+6
-0
No files found.
dlls/riched20/editor.c
View file @
57446cee
...
...
@@ -553,8 +553,9 @@ void ME_RTFParAttrHook(RTF_Info *info)
info
->
borderType
=
RTFBorderParaTop
;
info
->
fmt
.
dwMask
=
PFM_ALIGNMENT
|
PFM_BORDER
|
PFM_LINESPACING
|
PFM_TABSTOPS
|
PFM_OFFSET
|
PFM_RIGHTINDENT
|
PFM_SPACEAFTER
|
PFM_SPACEBEFORE
|
PFM_STARTINDENT
|
PFM_RTLPARA
;
/* TODO: numbering, shading */
PFM_STARTINDENT
|
PFM_RTLPARA
|
PFM_NUMBERING
|
PFM_NUMBERINGSTART
|
PFM_NUMBERINGSTYLE
|
PFM_NUMBERINGTAB
;
/* TODO: shading */
info
->
fmt
.
wAlignment
=
PFA_LEFT
;
info
->
fmt
.
cTabCount
=
0
;
info
->
fmt
.
dxOffset
=
info
->
fmt
.
dxStartIndent
=
info
->
fmt
.
dxRightIndent
=
0
;
...
...
@@ -564,6 +565,11 @@ void ME_RTFParAttrHook(RTF_Info *info)
info
->
fmt
.
dySpaceBefore
=
info
->
fmt
.
dySpaceAfter
=
0
;
info
->
fmt
.
dyLineSpacing
=
0
;
info
->
fmt
.
wEffects
&=
~
PFE_RTLPARA
;
info
->
fmt
.
wNumbering
=
0
;
info
->
fmt
.
wNumberingStart
=
0
;
info
->
fmt
.
wNumberingStyle
=
0
;
info
->
fmt
.
wNumberingTab
=
0
;
if
(
!
info
->
editor
->
bEmulateVersion10
)
/* v4.1 */
{
if
(
info
->
tableDef
&&
info
->
tableDef
->
tableRowStart
&&
...
...
dlls/riched20/tests/editor.c
View file @
57446cee
...
...
@@ -1307,6 +1307,12 @@ static void test_SETPARAFORMAT(void)
ok
(
ret
==
expectedMask
,
"expected %x got %x
\n
"
,
expectedMask
,
ret
);
ok
(
fmt
.
dwMask
==
expectedMask
,
"expected %x got %x
\n
"
,
expectedMask
,
fmt
.
dwMask
);
/* Test some other paraformat field defaults */
ok
(
fmt
.
wNumbering
==
0
,
"got %d
\n
"
,
fmt
.
wNumbering
);
ok
(
fmt
.
wNumberingStart
==
0
,
"got %d
\n
"
,
fmt
.
wNumberingStart
);
ok
(
fmt
.
wNumberingStyle
==
0
,
"got %04x
\n
"
,
fmt
.
wNumberingStyle
);
ok
(
fmt
.
wNumberingTab
==
0
,
"got %d
\n
"
,
fmt
.
wNumberingTab
);
DestroyWindow
(
hwndRichEdit
);
}
...
...
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