From: John Stebbins Date: Fri, 30 Dec 2016 16:28:07 +0000 (-0700) Subject: presets: fix hb_preset_move X-Git-Tag: 1.0.2~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f01f4a83e1a495ab02abfb415d2d3e08c7f42e38;p=handbrake presets: fix hb_preset_move Moving between different folder levels was broken. This broke preset drag-and-drop in LinGui. (cherry picked from commit 2365f4073387d5a8743e396dcb1f9a7d18dfd4a3) --- 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);