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
f9f881bf
Commit
f9f881bf
authored
Sep 05, 2008
by
Jan de Mooij
Committed by
Alexandre Julliard
Sep 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comdlg32/printdlg: If ToPages field is left empty set it to FromPages value.
parent
e55a7029
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
printdlg.c
dlls/comdlg32/printdlg.c
+12
-2
No files found.
dlls/comdlg32/printdlg.c
View file @
f9f881bf
...
...
@@ -309,8 +309,13 @@ static BOOL PRINTDLG_UpdatePrintDlgA(HWND hDlg,
if
(
IsDlgButtonChecked
(
hDlg
,
rad3
)
==
BST_CHECKED
)
{
/* Pages */
WORD
nToPage
;
WORD
nFromPage
;
BOOL
translated
;
nFromPage
=
GetDlgItemInt
(
hDlg
,
edt1
,
NULL
,
FALSE
);
nToPage
=
GetDlgItemInt
(
hDlg
,
edt2
,
NULL
,
FALSE
);
nToPage
=
GetDlgItemInt
(
hDlg
,
edt2
,
&
translated
,
FALSE
);
/* if no ToPage value is entered, use the FromPage value */
if
(
!
translated
)
nToPage
=
nFromPage
;
if
(
nFromPage
<
lppd
->
nMinPage
||
nFromPage
>
lppd
->
nMaxPage
||
nToPage
<
lppd
->
nMinPage
||
nToPage
>
lppd
->
nMaxPage
)
{
WCHAR
resourcestr
[
256
];
...
...
@@ -407,8 +412,13 @@ static BOOL PRINTDLG_UpdatePrintDlgW(HWND hDlg,
if
(
IsDlgButtonChecked
(
hDlg
,
rad3
)
==
BST_CHECKED
)
{
/* Pages */
WORD
nToPage
;
WORD
nFromPage
;
BOOL
translated
;
nFromPage
=
GetDlgItemInt
(
hDlg
,
edt1
,
NULL
,
FALSE
);
nToPage
=
GetDlgItemInt
(
hDlg
,
edt2
,
NULL
,
FALSE
);
nToPage
=
GetDlgItemInt
(
hDlg
,
edt2
,
&
translated
,
FALSE
);
/* if no ToPage value is entered, use the FromPage value */
if
(
!
translated
)
nToPage
=
nFromPage
;
if
(
nFromPage
<
lppd
->
nMinPage
||
nFromPage
>
lppd
->
nMaxPage
||
nToPage
<
lppd
->
nMinPage
||
nToPage
>
lppd
->
nMaxPage
)
{
WCHAR
resourcestr
[
256
];
...
...
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