Merge pull request #847 from shun-iwasawa/fix_clone
Fix clone levels not saving correctly
This commit is contained in:
commit
61a9c97880
1 changed files with 3 additions and 0 deletions
|
@ -1292,6 +1292,7 @@ TXshSimpleLevel *CloneLevelUndo::cloneLevel(
|
||||||
assert(palette);
|
assert(palette);
|
||||||
|
|
||||||
dstSl->setPalette(palette->clone());
|
dstSl->setPalette(palette->clone());
|
||||||
|
dstSl->getPalette()->setDirtyFlag(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The level clone shell was created. Now, clone the associated frames found
|
// The level clone shell was created. Now, clone the associated frames found
|
||||||
|
@ -1306,6 +1307,8 @@ TXshSimpleLevel *CloneLevelUndo::cloneLevel(
|
||||||
dstSl->setFrame(*ft, img->cloneImage());
|
dstSl->setFrame(*ft, img->cloneImage());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dstSl->setDirtyFlag(true);
|
||||||
|
|
||||||
return dstSl;
|
return dstSl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue