X-Git-Url: https://cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fauto.C;h=cd950dad0fae9907a1668391c7fa548a9a967fd1;hb=25e944875e181186eeb59a124c1822e5b55d2248;hp=4171fa83d18338a46897ff2877852550279ab9ca;hpb=0df48ad2d876409c5beeae2e21933a728ea76c33;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/cinelerra/auto.C b/cinelerra-5.1/cinelerra/auto.C index 4171fa83..cd950dad 100644 --- a/cinelerra-5.1/cinelerra/auto.C +++ b/cinelerra-5.1/cinelerra/auto.C @@ -21,6 +21,7 @@ #include "auto.h" #include "autos.h" +#include "edl.h" #include "filexml.h" Auto::Auto() @@ -29,10 +30,11 @@ Auto::Auto() this->edl = 0; this->autos = 0; position = 0; - skip = 0; WIDTH = xS(10); HEIGHT = yS(10); is_default = 0; + id = EDL::next_id(); + orig_id = id; } Auto::Auto(EDL *edl, Autos *autos) @@ -41,10 +43,11 @@ Auto::Auto(EDL *edl, Autos *autos) this->edl = edl; this->autos = autos; position = 0; - skip = 0; WIDTH = xS(10); HEIGHT = yS(10); is_default = 0; + id = EDL::next_id(); + orig_id = id; } Auto& Auto::operator=(Auto& that) @@ -66,6 +69,7 @@ void Auto::copy(int64_t start, int64_t end, FileXML *file, int default_only) void Auto::copy_from(Auto *that) { + this->orig_id = that->orig_id; this->position = that->position; }