diff --git a/src/undoable.cpp b/src/undoable.cpp index c26973646..4796172e2 100644 --- a/src/undoable.cpp +++ b/src/undoable.cpp @@ -736,7 +736,7 @@ void Undoable::copy_previous_frame(Layer* layer, int frame) } // add the cel in the layer - static_cast(layer)->add_cel(dst_cel); + add_cel(static_cast(layer), dst_cel); } void Undoable::add_cel(LayerImage* layer, Cel* cel)