From 383cf27b8bd263f3a2ed515548c98ea7eda6f210 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 18 Dec 2009 03:55:59 +0000 Subject: [PATCH] Fix to prevent duplicate tags svn: r13842 --- src/plugins/view/grampletview.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/view/grampletview.py b/src/plugins/view/grampletview.py index 19a2c539c..cbdbed702 100644 --- a/src/plugins/view/grampletview.py +++ b/src/plugins/view/grampletview.py @@ -196,7 +196,10 @@ class LinkTag(gtk.TextTag): tag_table = buffer.get_tag_table() self.set_property('foreground', "blue") #self.set_property('underline', pango.UNDERLINE_SINGLE) - tag_table.add(self) + try: + tag_table.add(self) + except ValueError: # tag is already in tag table + pass class GrampletWindow(ManagedWindow.ManagedWindow): """