Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Alban Lecuivre
2022-01-12 09:40:40 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f7b3272b9e36c42f64a19888271d90124863a8dd
f7b3272b
1 parent
47fddf11
fix: initialize auto variable
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
printing/windows/print_job.cpp
printing/windows/print_job.cpp
View file @
f7b3272
...
...
@@ -80,11 +80,11 @@ bool PrintJob::printPdf(std::string name,
bool
usePrinterSettings
)
{
documentName
=
name
;
auto
dm
;
auto
dm
=
static_cast
<
DEVMODE
*>
(
GlobalAlloc
(
0
,
sizeof
(
DEVMODE
)));
if
(
usePrinterSettings
){
dm
=
NULL
;
// to use default driver config
}
else
{
dm
=
static_cast
<
DEVMODE
*>
(
GlobalAlloc
(
0
,
sizeof
(
DEVMODE
)));
ZeroMemory
(
dm
,
sizeof
(
DEVMODE
));
dm
->
dmSize
=
sizeof
(
DEVMODE
);
dm
->
dmFields
=
DM_ORIENTATION
|
DM_PAPERSIZE
|
DM_PAPERLENGTH
|
DM_PAPERWIDTH
;
...
...
Please
register
or
login
to post a comment