From 2365f4073387d5a8743e396dcb1f9a7d18dfd4a3 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Fri, 30 Dec 2016 09:28:07 -0700 Subject: [PATCH] presets: fix hb_preset_move Moving between different folder levels was broken. This broke preset drag-and-drop in LinGui. --- libhb/preset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libhb/preset.c b/libhb/preset.c index e2dc02057..5a628e04d 100644 --- a/libhb/preset.c +++ b/libhb/preset.c @@ -3701,7 +3701,7 @@ int hb_preset_move(const hb_preset_index_t *src_path, int src_index, dst_index; src_index = src_path->index[src_path->depth-1]; - dst_index = dst_path->index[src_path->depth-1]; + dst_index = dst_path->index[dst_path->depth-1]; dict = hb_value_array_get(src_folder, src_index); hb_value_incref(dict); hb_value_array_remove(src_folder, src_index); -- 2.40.0