Skip to content

Commit 1204e92

Browse files
committed
File: fix name change
1 parent 074a238 commit 1204e92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Orange/widgets/utils/domaineditor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,7 @@ def numbers_are_round(var, col_data):
300300
var = orig_var
301301
elif tpe == type(orig_var):
302302
# change the name so that all_vars will get the correct name
303-
orig_var.name = name
304-
var = orig_var
303+
var = orig_var.copy(name=name)
305304
elif tpe == DiscreteVariable:
306305
values = list(str(i) for i in unique(col_data) if not self._is_missing(i))
307306
round_numbers = numbers_are_round(orig_var, col_data)

0 commit comments

Comments
 (0)