blob: 917f41bc28895c5b0445e041ed4488866f7790b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
Patch from FreeBSD
--- a/src/widget/gtkmathview_common.cc
+++ b/src/widget/gtkmathview_common.cc
@@ -909,7 +909,7 @@ gtk_math_view_button_release_event(GtkWi
math_view->select_state == SELECT_STATE_NO &&
fabs(math_view->button_press_x - event->x) <= CLICK_SPACE_RANGE &&
fabs(math_view->button_press_y - event->y) <= CLICK_SPACE_RANGE &&
- abs(math_view->button_press_time - event->time) <= CLICK_TIME_RANGE)
+ abs((long)math_view->button_press_time - (long)event->time) <= CLICK_TIME_RANGE)
{
// the mouse should have not moved more than one pixel in each direction
// and the time elapsed from the press event should be no more than 250ms
@@ -969,7 +969,7 @@ gtk_math_view_motion_notify_event(GtkWid
(math_view->select_state == SELECT_STATE_YES ||
fabs(math_view->button_press_x - x) > CLICK_SPACE_RANGE ||
fabs(math_view->button_press_y - y) > CLICK_SPACE_RANGE ||
- abs(math_view->button_press_time - event->time) > CLICK_TIME_RANGE))
+ abs((long)math_view->button_press_time - (long)event->time) > CLICK_TIME_RANGE))
{
if (math_view->select_state == SELECT_STATE_NO)
{
|