]> granicus.if.org Git - handbrake/commitdiff
presets: fix hb_preset_move
authorJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 30 Dec 2016 16:28:07 +0000 (09:28 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Fri, 30 Dec 2016 16:29:34 +0000 (09:29 -0700)
Moving between different folder levels was broken.  This broke preset
drag-and-drop in LinGui.

libhb/preset.c

index e2dc02057dc435e76c96563c88e71e09cdac3514..5a628e04dd1e1bc16bf2741d4282099af70c8f0a 100644 (file)
@@ -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);