diff options
Diffstat (limited to 'grc/src/platforms/gui/Param.py')
-rw-r--r-- | grc/src/platforms/gui/Param.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/src/platforms/gui/Param.py b/grc/src/platforms/gui/Param.py index 43265f274..7bc0d354f 100644 --- a/grc/src/platforms/gui/Param.py +++ b/grc/src/platforms/gui/Param.py @@ -118,7 +118,8 @@ class Param(Element): if self.is_enum(): dt_str = self.get_option(self.get_value()).get_name() elif isinstance(data, (list, tuple, set)): #vector types - dt_str = ', '.join(map(to_str, data)) + if len(data) > 8: dt_str = self.get_value() #large vectors use code + else: dt_str = ', '.join(map(to_str, data)) #small vectors use eval else: dt_str = to_str(data) #other types #truncate max_len = max(27 - len(self.get_name()), 3) |