From 5d3a7edaa3546616de75d3451f3ea39ed2f6785e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 28 May 2015 07:43:28 -0400 Subject: [PATCH] 8598: Drop text on Clipboard crashes with byte/string issue --- gramps/gui/clipboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/clipboard.py b/gramps/gui/clipboard.py index e3e552bc3..af671b78a 100644 --- a/gramps/gui/clipboard.py +++ b/gramps/gui/clipboard.py @@ -635,12 +635,12 @@ class ClipText(ClipWrapper): def __init__(self, dbstate, obj): super(ClipText, self).__init__(dbstate, obj) self._type = _("Text") - self._pickle = self._obj + self._pickle = str(self._obj, "utf-8") self.refresh() def refresh(self): self._title = _("Text") - self._value = self._obj + self._value = str(self._obj, "utf-8") class ClipMediaObj(ClipHandleWrapper):