Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Graphics
Okular
Commits
0919ad87
Commit
0919ad87
authored
Aug 21, 2017
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix width and height being switched when printing Custom size
BUGS: 383734
parent
862fd4f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
core/fileprinter.cpp
core/fileprinter.cpp
+2
-2
No files found.
core/fileprinter.cpp
View file @
0919ad87
...
...
@@ -537,8 +537,8 @@ QString FilePrinter::mediaPageSize( QPrinter &printer )
case
QPrinter
::
Letter
:
return
QStringLiteral
(
"Letter"
);
case
QPrinter
::
Tabloid
:
return
QStringLiteral
(
"Tabloid"
);
case
QPrinter
::
Custom
:
return
QStringLiteral
(
"Custom.%1x%2mm"
)
.
arg
(
printer
.
height
MM
()
)
.
arg
(
printer
.
width
MM
()
);
.
arg
(
printer
.
width
MM
()
)
.
arg
(
printer
.
height
MM
()
);
default:
return
QString
();
}
}
...
...
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