From 3d23336815fc2141b133e653e14e0881cde0b247 Mon Sep 17 00:00:00 2001
From: David Capello <davidcapello@gmail.com>
Date: Mon, 1 Feb 2016 10:58:29 -0300
Subject: [PATCH] Copy user data when we unlink cels

---
 src/app/cmd/unlink_cel.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/cmd/unlink_cel.cpp b/src/app/cmd/unlink_cel.cpp
index 8014540a2..e97402ca8 100644
--- a/src/app/cmd/unlink_cel.cpp
+++ b/src/app/cmd/unlink_cel.cpp
@@ -1,5 +1,5 @@
 // Aseprite
-// Copyright (C) 2001-2015  David Capello
+// Copyright (C) 2001-2016  David Capello
 //
 // This program is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License version 2 as
@@ -38,6 +38,7 @@ void UnlinkCel::onExecute()
   ImageRef imgCopy(Image::createCopy(oldCelData->image()));
   CelDataRef celDataCopy(new CelData(*oldCelData));
   celDataCopy->setImage(imgCopy);
+  celDataCopy->setUserData(oldCelData->userData());
 
   if (m_newImageId) {
     imgCopy->setId(m_newImageId);