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}