Skip to content

Commit b80f331

Browse files
committed
Fix projection data domain duplicate checking.
1 parent 52cbd80 commit b80f331

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Orange/widgets/visualize/utils/widget.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,11 @@ def _get_projection_data(self):
710710
proposed = [a.name for a in self.projection.domain.attributes]
711711
names = get_unique_names(self.data.domain, proposed)
712712

713-
attributes = tuple([a.copy(name=n) for n, a in
714-
zip(names, self.projection.domain.attributes)]) \
715-
if proposed != names else ()
713+
if proposed != names:
714+
attributes = tuple([attr.copy(name=name) for name, attr in
715+
zip(names, self.projection.domain.attributes)])
716+
else:
717+
attributes = self.projection.domain.attributes
716718
return self.data.transform(
717719
Domain(self.data.domain.attributes,
718720
self.data.domain.class_vars,

0 commit comments

Comments
 (0)