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
cea37334
Commit
cea37334
authored
Oct 23, 2014
by
Moritz Lipp
Browse files
Additional check for event null pointer in sc_zoom
parent
9712257b
Changes
1
Hide whitespace changes
Inline
Side-by-side
shortcuts.c
View file @
cea37334
...
...
@@ -1382,7 +1382,7 @@ sc_zoom(girara_session_t* session, girara_argument_t* argument, girara_event_t*
zathura_document_set_scale
(
zathura
->
document
,
t
/
100
.
0
);
}
}
else
if
(
argument
->
n
==
ZOOM_SMOOTH
)
{
const
double
dy
=
event
->
y
;
const
double
dy
=
(
event
!=
NULL
)
?
event
->
y
:
1
.
0
;
zathura_document_set_scale
(
zathura
->
document
,
old_zoom
+
zoom_step
*
dy
);
}
else
{
zathura_document_set_scale
(
zathura
->
document
,
1
.
0
);
...
...
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