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
2022-08-25 11:27:03 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ae6e6bedf0117242b3dd32de587fa2739a4e0aaf
ae6e6bed
1 parent
d1ba52eb
Fix code style
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
printing/windows/print_job.cpp
printing/windows/print_job.cpp
View file @
ae6e6be
...
...
@@ -84,8 +84,9 @@ bool PrintJob::printPdf(const std::string& name,
std
::
size_t
dmSize
=
sizeof
(
DEVMODE
);
std
::
size_t
dmExtra
=
0
;
if
(
!
printer
.
empty
()){
dmExtra
=
DeviceCapabilities
(
fromUtf8
(
printer
).
c_str
(),
NULL
,
DC_EXTRA
,
NULL
,
NULL
);
if
(
!
printer
.
empty
())
{
dmExtra
=
DeviceCapabilities
(
fromUtf8
(
printer
).
c_str
(),
NULL
,
DC_EXTRA
,
NULL
,
NULL
);
}
auto
dm
=
static_cast
<
DEVMODE
*>
(
GlobalAlloc
(
0
,
dmSize
+
dmExtra
));
...
...
Please
register
or
login
to post a comment