Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adrien Plazas
libhandy
Commits
2f25fee6
Commit
2f25fee6
authored
Feb 15, 2020
by
Alexander Mikhaylenko
Browse files
swipe-tracker: Fix crash in confirm_swipe()
A regression from
03bd1145
parent
08d42dee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/hdy-swipe-tracker.c
View file @
2f25fee6
...
...
@@ -939,10 +939,10 @@ hdy_swipe_tracker_confirm_swipe (HdySwipeTracker *self,
g_return_if_fail
(
points
);
g_return_if_fail
(
n_snap_points
>
0
);
g_return_if_fail
(
is_sorted
(
points
,
n_snap_points
));
g_return_if_fail
(
current_progress
>=
snap_
points
[
0
]);
g_return_if_fail
(
current_progress
<=
snap_
points
[
n_snap_points
-
1
]);
g_return_if_fail
(
cancel_progress
>=
snap_
points
[
0
]);
g_return_if_fail
(
cancel_progress
<=
snap_
points
[
n_snap_points
-
1
]);
g_return_if_fail
(
current_progress
>=
points
[
0
]);
g_return_if_fail
(
current_progress
<=
points
[
n_snap_points
-
1
]);
g_return_if_fail
(
cancel_progress
>=
points
[
0
]);
g_return_if_fail
(
cancel_progress
<=
points
[
n_snap_points
-
1
]);
if
(
self
->
state
!=
HDY_SWIPE_TRACKER_STATE_PREPARING
)
{
gesture_cancel
(
self
);
...
...
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