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
Joao Oliveira
Okular
Commits
846e746a
Commit
846e746a
authored
Jul 10, 2014
by
Vadim Zhukov
Committed by
Albert Astals Cid
Jul 10, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation on OpenBSD/i386
REVIEW: 118950
parent
478b41c3
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 @
846e746a
...
...
@@ -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