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
Andi Sardina Ramos
Okular
Commits
31d1b505
Commit
31d1b505
authored
Jan 10, 2005
by
Scott Wheeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
roundf is C99
svn path=/trunk/kdegraphics/kpdf/; revision=377202
parent
10af2d6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ui/presentationwidget.cpp
ui/presentationwidget.cpp
+1
-1
No files found.
ui/presentationwidget.cpp
View file @
31d1b505
...
...
@@ -294,7 +294,7 @@ void PresentationWidget::overlayClick( const QPoint & position )
// compute angle relative to indicator (note coord transformation)
float
angle
=
0.5
+
0.5
*
atan2f
(
-
xPos
,
-
yPos
)
/
M_PI
;
int
pageIndex
=
(
int
)
roundf
(
angle
*
(
m_frames
.
count
()
-
1
)
);
int
pageIndex
=
(
int
)(
angle
*
(
m_frames
.
count
()
-
1
)
+
0.5
);
// go to selected page
changePage
(
pageIndex
);
...
...
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