Commit 936c610e authored by Benjamin Pracht's avatar Benjamin Pracht

Backport of 13287

parent a7913428
...@@ -1657,10 +1657,8 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/ ...@@ -1657,10 +1657,8 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
/* If the item is to be dropped as root item of the outline, make it a /* If the item is to be dropped as root item of the outline, make it a
child of the General node. child of the General node.
Else, choose the proposed parent as parent. */ Else, choose the proposed parent as parent. */
if( item == nil ) if( item == nil ) p_new_parent = p_playlist->p_general;
p_new_parent = p_playlist->p_general; else p_new_parent = [item pointerValue];
else
p_new_parent = [item pointerValue];
/* Make sure the proposed parent is a node. /* Make sure the proposed parent is a node.
(This should never be true) */ (This should never be true) */
...@@ -1709,8 +1707,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/ ...@@ -1709,8 +1707,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
else else
{ {
if ((p_new_parent == p_old_parent && if ((p_new_parent == p_old_parent &&
i_old_index < index + (int)i) i_old_index < index + (int)i) )
|| p_new_parent == p_playlist->p_general )
{ {
i_removed_from_node++; i_removed_from_node++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment