Fix time offset parameter static option
[synfig.git] / synfig-core / src / synfig / layer_pastecanvas.cpp
index 733e7fe..1eea2e9 100644 (file)
@@ -184,9 +184,9 @@ Layer_PasteCanvas::set_param(const String & param, const ValueBase &value)
        if(param=="canvas" && value.same_type_as(Canvas::Handle()))
        {
                set_sub_canvas(value.get(Canvas::Handle()));
+               set_param_static(param, value.get_static());
                return true;
        }
-
        //! \todo this introduces bug 1844764 if enabled; it was introduced in r954.
        // http://synfig.org/images/3/3d/Moving-waypoints.sifz is an
        // example of an animation that has its waypoints displayed
@@ -580,7 +580,7 @@ Layer_PasteCanvas::set_param_static(const String &param, const bool x)
        SET_STATIC(focus, x)
        SET_STATIC(canvas, x)
        SET_STATIC(zoom, x)
-       SET_STATIC(offset, x)
+       SET_STATIC(time_offset, x)
        SET_STATIC(children_lock, x)
 
        return Layer_Composite::set_param_static(param, x);
@@ -594,7 +594,7 @@ Layer_PasteCanvas::get_param_static(const String &param) const
        GET_STATIC(focus)
        GET_STATIC(canvas)
        GET_STATIC(zoom)
-       GET_STATIC(offset)
+       GET_STATIC(time_offset)
        GET_STATIC(children_lock)
 
        return Layer_Composite::get_param_static(param);