From 7611cacc13152aa1bbbb19cd7b41b133a4fd0157 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 9 May 2013 23:52:47 +0000 Subject: [PATCH] Simple table fix for numneric and checkbox columns svn: r22233 --- gramps/gen/simple/_simpletable.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/gen/simple/_simpletable.py b/gramps/gen/simple/_simpletable.py index c35a1ec9b..4ea730117 100644 --- a/gramps/gen/simple/_simpletable.py +++ b/gramps/gen/simple/_simpletable.py @@ -104,12 +104,12 @@ class SimpleTable(object): retval.append("") elif isinstance(item, STRTYPE): if item == "checkbox": - retval.append("") + retval.append(False) self.set_cell_type(col, "checkbox") else: retval.append(item) elif isinstance(item, (int, float)): - retval.append(item) + retval.append(conv_to_unicode_direct(item)) self.row_sort_val(col, item) elif isinstance(item, Person): retval.append(self.access.describe(item)) @@ -266,7 +266,7 @@ class SimpleTable(object): if y is None: return False # no markup for this column else: - return conv_to_unicode_direct(data) + return data def get_cell_type(self, col): """