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
David PHAM-VAN
2021-02-28 07:29:18 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bf1d66577c33025e3bf9ec4bfc58b2718b43faa6
bf1d6657
1 parent
a533059e
Fix indentation
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
printing/windows/print_job.cpp
printing/windows/print_job.cpp
View file @
bf1d665
...
...
@@ -104,15 +104,15 @@ bool PrintJob::printPdf(std::string name, std::string printer) {
if
(
r
!=
1
)
{
printing
->
onCompleted
(
this
,
false
,
""
);
DeleteDC
(
hDC
);
GlobalFree
(
hDevNames
);
ClosePrinter
(
hDevMode
);
DeleteDC
(
hDC
);
GlobalFree
(
hDevNames
);
ClosePrinter
(
hDevMode
);
return
true
;
}
hDC
=
pd
.
hDC
;
hDevMode
=
pd
.
hDevMode
;
hDevNames
=
pd
.
hDevNames
;
hDC
=
pd
.
hDC
;
hDevMode
=
pd
.
hDevMode
;
hDevNames
=
pd
.
hDevNames
;
}
else
{
hDC
=
CreateDC
(
TEXT
(
"WINSPOOL"
),
fromUtf8
(
printer
).
c_str
(),
NULL
,
NULL
);
...
...
Please
register
or
login
to post a comment