Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Joao Oliveira
Okular
Commits
d0349e1f
Commit
d0349e1f
authored
Jul 10, 2014
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/KDE/4.13' into KDE/4.14
parents
1932d398
846e746a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
core/utils.cpp
core/utils.cpp
+2
-3
No files found.
core/utils.cpp
View file @
d0349e1f
...
...
@@ -16,7 +16,6 @@
#include <QDesktopWidget>
#include <QImage>
#include <QIODevice>
#include <cmath>
#ifdef Q_WS_X11
#include "config-okular.h"
...
...
@@ -139,8 +138,8 @@ QSizeF Utils::realDpi(QWidget* widgetOnScreen)
}
if
(
szMM
.
width
()
>
0
&&
szMM
.
height
()
>
0
&&
outputRect
.
width
()
>
0
&&
outputRect
.
height
()
>
0
&&
selectedOutput
->
edid
()
&&
std
::
a
bs
(
static_cast
<
int
>
(
selectedOutput
->
edid
()
->
width
()
*
10
)
-
szMM
.
width
())
<
10
&&
std
::
a
bs
(
static_cast
<
int
>
(
selectedOutput
->
edid
()
->
height
()
*
10
)
-
szMM
.
height
())
<
10
)
&&
qA
bs
(
static_cast
<
int
>
(
selectedOutput
->
edid
()
->
width
()
*
10
)
-
szMM
.
width
())
<
10
&&
qA
bs
(
static_cast
<
int
>
(
selectedOutput
->
edid
()
->
height
()
*
10
)
-
szMM
.
height
())
<
10
)
{
// sizes in EDID seem to be consistent
QSizeF
res
(
static_cast
<
qreal
>
(
outputRect
.
width
())
*
25.4
/
szMM
.
width
(),
...
...
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