fixed crash when copying an effect after copying a clip

This commit is contained in:
itsmattkc
2018-12-30 08:39:16 +11:00
parent 9f72bc5622
commit 0047f6e260
+1 -1
View File
@@ -111,9 +111,9 @@ void EffectControls::copy(bool del) {
Effect* effect = c->effects.at(j);
if (effect->container->selected) {
if (!cleared) {
clipboard_type = CLIPBOARD_TYPE_EFFECT;
clear_clipboard();
cleared = true;
clipboard_type = CLIPBOARD_TYPE_EFFECT;
}
clipboard.append(effect->copy(NULL));