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
John Zhang
Okular
Commits
0e7aeb2b
Commit
0e7aeb2b
authored
Jul 17, 2007
by
Pino Toscano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no need to set a new rotation if it's equal to the currently set
svn path=/trunk/KDE/kdegraphics/okular/; revision=689135
parent
b41dcfed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
core/document.cpp
core/document.cpp
+3
-2
No files found.
core/document.cpp
View file @
0e7aeb2b
...
...
@@ -2500,9 +2500,10 @@ void Document::requestDone( PixmapRequest * req )
void
Document
::
setRotation
(
int
r
)
{
if
(
!
d
->
m_generator
)
return
;
Rotation
rotation
=
(
Rotation
)
r
;
if
(
!
d
->
m_generator
||
(
d
->
m_rotation
==
rotation
)
)
return
;
// tell the pages to rotate
QVector
<
Okular
::
Page
*
>::
const_iterator
pIt
=
d
->
m_pagesVector
.
begin
();
QVector
<
Okular
::
Page
*
>::
const_iterator
pEnd
=
d
->
m_pagesVector
.
end
();
...
...
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