Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
771e0513
Commit
771e0513
authored
Feb 25, 2016
by
Sebastian Ramacher
Browse files
Compare with fabs
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
9bfe4f22
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/jumplist.c
View file @
771e0513
...
...
@@ -5,6 +5,7 @@
#include "database.h"
#include <girara/utils.h>
#include <math.h>
static
void
zathura_jumplist_reset_current
(
zathura_t
*
zathura
);
static
void
zathura_jumplist_append_jump
(
zathura_t
*
zathura
);
...
...
@@ -120,7 +121,7 @@ zathura_jumplist_add(zathura_t* zathura)
zathura_jump_t
*
cur
=
zathura_jumplist_current
(
zathura
);
if
(
cur
!=
NULL
)
{
if
(
cur
->
page
==
pagenum
&&
cur
->
x
==
x
&&
cur
->
y
==
y
)
{
if
(
cur
->
page
==
pagenum
&&
fabs
(
cur
->
x
-
x
)
<=
DBL_EPSILON
&&
fabs
(
cur
->
y
-
y
)
<=
DBL_EPSILON
)
{
return
;
}
}
...
...
Write
Preview
Supports
Markdown
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