diff --git a/release-notes.md b/release-notes.md index c0731891..c12255b3 100644 --- a/release-notes.md +++ b/release-notes.md @@ -3,6 +3,8 @@ * Add ability to remember recent projects in config * Add navigation support (back and forward) * Fix file deletion to close file even if not active +* Fix file copy to work when creating a copy with the name of a previously + deleted file * PaletteEditor: Add RGB key shortcuts for focusing color channels * PaletteEditor: Add color preview to color editor * PaletteEditor: Make RGB key shortcuts work when color channel inputs are diff --git a/src/olympic/studio/modlib/src/project.cpp b/src/olympic/studio/modlib/src/project.cpp index f5801b31..214902eb 100644 --- a/src/olympic/studio/modlib/src/project.cpp +++ b/src/olympic/studio/modlib/src/project.cpp @@ -101,8 +101,8 @@ ox::Result Project::stat(ox::StringViewCR path) const noexcept { ox::Error Project::copyItem(ox::StringViewCR src, ox::StringViewCR dest) noexcept { OX_REQUIRE_M(buff, loadBuff(src)); OX_REQUIRE(id, keel::regenerateUuidHeader(buff)); - OX_RETURN_ERROR(writeBuff(dest, buff)); createUuidMapping(m_kctx, dest, id); + OX_RETURN_ERROR(writeBuff(dest, ox::BufferView{buff} + keel::K1HdrSz)); return {}; }