Skip to content

Commit

Permalink
LinGui: fix PtoP fractional second times
Browse files Browse the repository at this point in the history
  • Loading branch information
jstebbins committed Feb 8, 2020
1 parent db633f7 commit 8be0858
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gtk/src/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3260,18 +3260,18 @@ start_point_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
}
else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 1)
{
start = ghb_dict_get_int(ud->settings, "start_point");
end = ghb_dict_get_int(ud->settings, "end_point");
start = ghb_dict_get_double(ud->settings, "start_point") * 90000;
end = ghb_dict_get_double(ud->settings, "end_point") * 90000;
if (start >= end)
{
ghb_ui_update(ud, "end_point", ghb_int_value(start+1));
end = start + 1;
end = start + 90000;
}
ghb_check_dependency(ud, widget, NULL);
update_title_duration(ud);

ghb_dict_set_int(range, "Start", start * 90000);
ghb_dict_set_int(range, "End", end * 90000);
ghb_dict_set_int(range, "Start", start);
ghb_dict_set_int(range, "End", end);
}
else if (ghb_settings_combo_int(ud->settings, "PtoPType") == 2)
{
Expand Down

0 comments on commit 8be0858

Please sign in to comment.