diff --git a/Orange/widgets/utils/domaineditor.py b/Orange/widgets/utils/domaineditor.py index 3ce1d2ae2d9..7d6219eb6a9 100644 --- a/Orange/widgets/utils/domaineditor.py +++ b/Orange/widgets/utils/domaineditor.py @@ -300,8 +300,7 @@ def numbers_are_round(var, col_data): var = orig_var elif tpe == type(orig_var): # change the name so that all_vars will get the correct name - orig_var.name = name - var = orig_var + var = orig_var.copy(name=name) elif tpe == DiscreteVariable: values = list(str(i) for i in unique(col_data) if not self._is_missing(i)) round_numbers = numbers_are_round(orig_var, col_data)