diff --git a/extension/ZAZFunctions_v0.2.0.oxt b/extension/ZAZFunctions_v0.2.0.oxt index 62babb6..5f399a6 100644 Binary files a/extension/ZAZFunctions_v0.2.0.oxt and b/extension/ZAZFunctions_v0.2.0.oxt differ diff --git a/source/ZAZFunctions.py b/source/ZAZFunctions.py index 19156dd..c4eb5ed 100644 --- a/source/ZAZFunctions.py +++ b/source/ZAZFunctions.py @@ -33,14 +33,20 @@ class ZAZFunctions(unohelper.Base, XZAZFunctions): search_mode = 1 value = None + + horizontal = False if len(lookup_array[0]) == 1: source = [r[0] for r in lookup_array] else: + horizontal = True source = lookup_array[0] if lookup_value in source: index = source.index(lookup_value) - value = (return_array[index],) + if horizontal: + value = ((return_array[0][index],),) + else: + value = (return_array[index],) if value is None: if match_mode == -1: