From 9fbdfac51ab295f8c0ae9afb31a5b328b3a3bf16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 26 Jan 2014 12:12:37 +0100 Subject: [PATCH] 7399: Cannot copy via context menu on Views into Charts Category --- gramps/gui/widgets/fanchart.py | 2 +- gramps/plugins/view/pedigreeview.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gui/widgets/fanchart.py b/gramps/gui/widgets/fanchart.py index c821fc6f0..aec0d64ab 100644 --- a/gramps/gui/widgets/fanchart.py +++ b/gramps/gui/widgets/fanchart.py @@ -1980,6 +1980,6 @@ class FanChartGrampsGUI(object): if person: cb = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(), Gdk.SELECTION_CLIPBOARD) - cb.set_text( self.format_helper.format_person(person,11)) + cb.set_text( self.format_helper.format_person(person,11), -1) return True return False diff --git a/gramps/plugins/view/pedigreeview.py b/gramps/plugins/view/pedigreeview.py index 9a4f75f7b..36d5b020c 100644 --- a/gramps/plugins/view/pedigreeview.py +++ b/gramps/plugins/view/pedigreeview.py @@ -1302,7 +1302,7 @@ class PedigreeView(NavigationView): if person: clipboard = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(), Gdk.SELECTION_CLIPBOARD) - clipboard.set_text(self.format_helper.format_person(person, 11)) + clipboard.set_text(self.format_helper.format_person(person, 11), -1) return True return False @@ -1315,7 +1315,7 @@ class PedigreeView(NavigationView): if family: clipboard = Gtk.Clipboard.get_for_display(Gdk.Display.get_default(), Gdk.SELECTION_CLIPBOARD) - clipboard.set_text(self.format_helper.format_relation(family, 11)) + clipboard.set_text(self.format_helper.format_relation(family, 11), -1) return True return False