Fixed copy/paste for repeated operation 11/78511/1 accepted/tizen/common/20160706.142040 accepted/tizen/ivi/20160706.082034 accepted/tizen/mobile/20160706.081947 accepted/tizen/tv/20160706.081924 accepted/tizen/wearable/20160706.082011 submit/tizen/20160706.014526
authorsuhyung Eom <suhyung.eom@samsung.com>
Wed, 6 Jul 2016 01:37:36 +0000 (10:37 +0900)
committersuhyung Eom <suhyung.eom@samsung.com>
Wed, 6 Jul 2016 01:39:22 +0000 (10:39 +0900)
Signed-off-by: suhyung Eom <suhyung.eom@samsung.com>
Change-Id: I7dbf03c7e1ba70fc4bc8d8cdd946ec0952ad966a

adaptors/ecore/wayland/clipboard-impl-ecore-wl.cpp

index 513ec21..a55508a 100644 (file)
@@ -53,6 +53,12 @@ struct Clipboard::Impl
 
   void SetItem(const char *data)
   {
+    char *temp = NULL;
+
+    if (bundle_get_str(mBundle, CLIPBOARD_STR, &temp) == BUNDLE_ERROR_NONE)
+    {
+      bundle_del(mBundle, CLIPBOARD_STR);
+    }
     bundle_add_str(mBundle, CLIPBOARD_STR, data);
   }