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
e79719b9
Commit
e79719b9
authored
Jul 10, 2014
by
Albert Astals Cid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reorder conditions to make the valgrind warning go away
parent
846e746a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ui/pageview.cpp
ui/pageview.cpp
+2
-2
No files found.
ui/pageview.cpp
View file @
e79719b9
...
...
@@ -1645,7 +1645,7 @@ void PageView::resizeEvent( QResizeEvent *e )
return
;
}
if
(
(
d
->
zoomMode
==
ZoomFitWidth
||
d
->
zoomMode
==
ZoomFitAuto
)
&&
d
->
verticalScrollBarVisible
&&
!
verticalScrollBar
()
->
isVisible
()
&&
qAbs
(
e
->
oldSize
().
height
()
-
e
->
size
().
height
())
<
verticalScrollBar
()
->
width
()
)
if
(
(
d
->
zoomMode
==
ZoomFitWidth
||
d
->
zoomMode
==
ZoomFitAuto
)
&&
!
verticalScrollBar
()
->
isVisible
()
&&
qAbs
(
e
->
oldSize
().
height
()
-
e
->
size
().
height
())
<
verticalScrollBar
()
->
width
()
&&
d
->
verticalScrollBarVisible
)
{
// this saves us from infinite resizing loop because of scrollbars appearing and disappearing
// see bug 160628 for more info
...
...
@@ -1655,7 +1655,7 @@ void PageView::resizeEvent( QResizeEvent *e )
resizeContentArea
(
e
->
size
()
);
return
;
}
else
if
(
d
->
zoomMode
==
ZoomFitAuto
&&
d
->
horizontalScrollBarVisible
&&
!
horizontalScrollBar
()
->
isVisible
()
&&
qAbs
(
e
->
oldSize
().
width
()
-
e
->
size
().
width
())
<
horizontalScrollBar
()
->
height
()
)
else
if
(
d
->
zoomMode
==
ZoomFitAuto
&&
!
horizontalScrollBar
()
->
isVisible
()
&&
qAbs
(
e
->
oldSize
().
width
()
-
e
->
size
().
width
())
<
horizontalScrollBar
()
->
height
()
&&
d
->
horizontalScrollBarVisible
)
{
// this saves us from infinite resizing loop because of scrollbars appearing and disappearing
// TODO looks are still a bit ugly because things are left uncentered
...
...
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