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
9a1cc45e
Commit
9a1cc45e
authored
Oct 11, 2016
by
Huw Davies
Committed by
Alexandre Julliard
Oct 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wordpad: Keep the list indentation aligned when the margins are changed.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d263cd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
wordpad.c
programs/wordpad/wordpad.c
+14
-1
No files found.
programs/wordpad/wordpad.c
View file @
9a1cc45e
...
...
@@ -1579,8 +1579,15 @@ static INT_PTR CALLBACK paraformat_proc(HWND hWnd, UINT message, WPARAM wParam,
int
index
;
float
num
;
int
ret
=
0
;
PARAFORMAT
pf
;
PARAFORMAT
2
pf
;
UNIT
unit
;
BOOL
in_list
=
FALSE
;
pf
.
cbSize
=
sizeof
(
pf
);
pf
.
dwMask
=
PFM_NUMBERING
;
SendMessageW
(
hEditorWnd
,
EM_GETPARAFORMAT
,
0
,
(
LPARAM
)
&
pf
);
if
((
pf
.
dwMask
&
PFM_NUMBERING
)
&&
pf
.
wNumbering
)
in_list
=
TRUE
;
index
=
SendMessageW
(
hListWnd
,
CB_GETCURSEL
,
0
,
0
);
pf
.
wAlignment
=
ALIGNMENT_VALUES
[
index
];
...
...
@@ -1630,6 +1637,12 @@ static INT_PTR CALLBACK paraformat_proc(HWND hWnd, UINT message, WPARAM wParam,
pf
.
cbSize
=
sizeof
(
pf
);
pf
.
dwMask
=
PFM_ALIGNMENT
|
PFM_OFFSET
|
PFM_RIGHTINDENT
|
PFM_STARTINDENT
;
if
(
in_list
)
{
pf
.
wNumberingTab
=
max
(
pf
.
dxOffset
,
0
);
pf
.
dwMask
|=
PFM_NUMBERINGTAB
;
}
SendMessageW
(
hEditorWnd
,
EM_SETPARAFORMAT
,
0
,
(
LPARAM
)
&
pf
);
}
}
...
...
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