From 2617c0c005d421c6c9ead8fbf4a0bcff80ef166a Mon Sep 17 00:00:00 2001 From: Jens Janssen Date: Thu, 19 Oct 2017 14:02:12 +0200 Subject: [PATCH] Finally fixing #83 (blank fields) --- vitables/vttables/leaf_model.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vitables/vttables/leaf_model.py b/vitables/vttables/leaf_model.py index d73bd509..a656f057 100644 --- a/vitables/vttables/leaf_model.py +++ b/vitables/vttables/leaf_model.py @@ -123,8 +123,10 @@ def __init__(self, leaf, parent=None): self.formatContent = vitables.utils.formatObjectContent elif atom_type in ('vlstring', 'vlunicode'): self.formatContent = vitables.utils.formatStringContent + else: + self.formatContent = vitables.utils.formatArrayContent else: - self.formatContent = vitables.utils.formatStringContent + self.formatContent = vitables.utils.formatArrayContent # Track selected cell self.selected_cell = {'index': QtCore.QModelIndex(), 'buffer_start': 0}