# Bug: Copying patches between instances of XOD doesn't copy code

**URL:** <https://forum.xod.io/t/bug-copying-patches-between-instances-of-xod-doesnt-copy-code/277>\
**Category:** Uncategorized\
**Created:** [December 20, 2017, 5:52pm UTC](https://forum.xod.io/t/bug-copying-patches-between-instances-of-xod-doesnt-copy-code/277 "2017-12-20T17:52:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitrex](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@bitrex](https://forum.xod.io/u/bitrex)\
**Post date:** [December 20, 2017, 5:52pm UTC](https://forum.xod.io/t/bug-copying-patches-between-instances-of-xod-doesnt-copy-code/277/1 "2017-12-20T17:52:02Z")

</div>

I noticed that if I have a patch open in one XOD app window which contains a “not-implemented” node containing custom C++ code, and hit “Select All” and “Copy”, then switch to a second running XOD window and hit “Paste”, all the nodes are copied correctly, but the code inside the “not-implemented” block within the new copy of the patch reverts to the default template. OS is Linux, Xubuntu 16.04.

Don’t know if this is intentional or not, but good thing I looked! 😅

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [December 22, 2017, 9:45am UTC](https://forum.xod.io/t/bug-copying-patches-between-instances-of-xod-doesnt-copy-code/277/2 "2017-12-22T09:45:17Z")

</div>

😮 Yeah! That’s a bug definitely. I’ve opened an [issue](https://github.com/xodio/xod/issues/969) for it. Thanks for reporting!

---

<div class="post-metadata">

**Author:** ![evgenykochetkov](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/evgenykochetkov/32/14_2.png) [@evgenykochetkov](https://forum.xod.io/u/evgenykochetkov)\
**Post date:** [February 11, 2018, 10:52am UTC](https://forum.xod.io/t/bug-copying-patches-between-instances-of-xod-doesnt-copy-code/277/3 "2018-02-11T10:52:40Z")

</div>

This was fixed in version 0.18.0

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [February 16, 2018, 9:35am UTC](https://forum.xod.io/t/bug-copying-patches-between-instances-of-xod-doesnt-copy-code/277/4 "2018-02-16T09:35:17Z")

</div>

Closed on February 16, 2018, 9:35am UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
